1.llama-cpp-python报错:
bash
ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)

2.原因是:llama-cpp-python安装依赖微软的编译工具

3.解决办法就是安装编译工具:visual build tools

只需要勾选 Desktopdevelopment with C++
安装即可,Optional
默认即可,也可以按需勾选
再执行命令安装即可成功
python
pip install llama-cpp-python
Python 3.12.9
版本的llama-cpp-python
就编译完成了