【亲测解决】Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)

微信公众号:leetcode_algos_life,代码随想随记
小红书:412408155
CSDN:https://blog.csdn.net/woai8339?type=blog ,代码随想随记
GitHub: https://github.com/riverind
抖音【暂未开始,计划开始】:tian72530,代码随想随记
知乎【暂未开始,计划开始】:代码随想随记

背景

安装 llama-cpp-python报错,采用pip install llama-cpp-python
报错信息如下:

 note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for llama-cpp-python
Failed to build llama-cpp-python
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (llama-cpp-python)

解决方案

# Linux环境下

apt-get install gcc-11 g++-11
apt install build-essential

pip install --no-cache-dir llama-cpp-python==0.2.77

猜你喜欢

转载自blog.csdn.net/woai8339/article/details/143369842