centos 安装AI 向量数据库 chroma

目录

官网

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。然而我按照步骤并未解决我的问题。

通过以下方式解决:

conda install -c conda-forge chromadb

写一个python测试程序 chromatest.py

import chromadb
chroma_client = chromadb.Client()

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)

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
xiaoxingxing的头像xiaoxingxing管理团队
上一篇 2023年9月17日
下一篇 2023年9月17日

相关推荐