张国伟 发表于 2024-11-20 12:41:28

【亲测解决】Failed to build installable wheels for some pyproject.toml

微信公众号: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


免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 【亲测解决】Failed to build installable wheels for some pyproject.toml