在构建RAG-LLM系统时,用到了llama_cpp这个python包。但是一直安装不上,报错。
“ERROR: Failed building wheel for llama_cpp_python”
“ERROR: Could not build wheels for llama_cpp_python, which is required to install pyproject.toml-based projects”
尝试在安装包名改为“llama_cpp_python”无效。
最后在Github上发现有人同样的报错。解决方法如下:
安装visual studio 2022,并且勾选C++桌面开发选项与应用程序开发选项;
然后再继续安装llama_cpp即可。
具体原因不详。
Github链接:https://github.com/abetlen/llama-cpp-python/issues/244