【日常问题记录】 Could not build wheels for ... install pyproject.toml-based projects

607 阅读1分钟

在尝试安装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

再次运行依赖库安装,成功解决。