站点图标 AI技术聚合

centos 安装AI 向量数据库 chroma

Table of Contents

官网

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)

文章出处登录后可见!

已经登录?立即刷新
退出移动版