在尝试安装Langchain相关依赖库时
pip install --upgrade langchain langchain-community langchainhub langchain-openai langchain-chroma bs4
遇到如下报错:
ERROR: Failed building wheel for chroma-hnswlib
Failed to build chroma-hnswlib
ERROR: Could not build wheels for chroma-hnswlib, which is required to install pyproject.toml-based projects
参考这位blog的解决方法
【uWSGI】ERROR: Could not build wheels for uwsgi, which is required to install pyproject.toml-based..._ubuntu_鱼儿听雨眠-华为云开发者联盟 (csdn.net)
将uwsgi改为我这里遇到的chroma-hnswlib
conda install chroma-hnswlib
再次运行依赖库安装,成功解决。