AI大模型教程
一起来学习

关于安装llama-cpp-python报错问题解决方法

ubuntu系统下安装llama-cpp-python报错

在ubuntu操作系统通过pip install llama-cpp-python 指令安装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: Could not build wheels for llama-cpp-python, which is required to install pyproject.toml-based projects

报错原因:

  1. 我们安装的是CPU版本的llama-cpp-python,但实际通过pip安装时默认是下载最新版本的,即0.3.5版本,但是我们通过网站(https://abetlen.github.io/llama-cpp-python/whl/cpu/llama-cpp-python/)发现cpu版本的llama-cpp-python最新版本为0.3.2,导致安装失败。

解决方法

pip install llama-cpp-python==0.3.2

文章来源于互联网:关于安装llama-cpp-python报错问题解决方法

相关推荐: Stable Diffusion WebUI 里不显示 VAE 模型、CLIP 终止层数?一分钟解决!

上一篇已经在 Mac 上安装部署了 Stable Diffusion WebUI,没有装好的小伙伴可以看这里:在男朋友的 Mac 上部署 Stable Diffusion(超详细,含踩坑点,AI 绘画入门保姆级教程) 但是起来了之后,发现貌似少了一些东西。这是…

赞(0)
未经允许不得转载:5bei.cn大模型教程网 » 关于安装llama-cpp-python报错问题解决方法
分享到: 更多 (0)

AI大模型,我们的未来

小欢软考联系我们