当前位置:   article > 正文

centos 安装AI 向量数据库 chroma_error: could not build wheels for chroma-hnswlib,

error: could not build wheels for chroma-hnswlib, which is required to insta

官网

1 官网地址:https://docs.trychroma.com/getting-started

步骤

有两种方式:1,通过pip install ; 2 运行docker
本教程通过pip install 方式:

pip3 install chromadb

报错:
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects

官网mac、linux、windows解决方案:https://docs.trychroma.com/troubleshooting。然而我按照步骤并未解决我的问题。

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

通过以下方式解决:

conda install -c conda-forge chromadb
  • 1

写一个python测试程序 chromatest.py

import chromadb
chroma_client = chromadb.Client()
  • 1
  • 2

pip3 chromatest.py 运行报错:
ImportError: zstd C API versions mismatch; Python bindings were not compiled/linked against expected zstd version (10505 returned by the lib, 10502 hardcoded in zstd headers, 10502 hardcoded in the cext)

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/153041
推荐阅读
相关标签
  

闽ICP备14008679号