官网

1 官网地址:https://docs.trychroma.com/getting-started
2 推荐一个gpt AI工具:态灵AI: chatai.taigoodai.com
3 推荐一个AI本地笔记软件:知周笔记: knownnote.com

步骤

有两种方式: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)

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐