BUG:ERROR: Could not find a version that satisfies the requirement cffi

BUG:ERROR: Could not find a version that satisfies the requirement cffi

环境

python 复制代码
Linux
Python 3.10

详情

在安装 cld2-cffi 库时发生的错误。

复制代码
ERROR: Could not find a version that satisfies the requirement cffi (from versions: none)
`ERROR: No matching distribution found for cffi`
distutils.errors.DistutilsError: Command '['/home/zmp/.conda/envs/keytechcpu/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpwqwgl4az', '--quiet', 'cffi']' returned non-zero exit status 1.

错误原因:这个错误由于安装 cffi 失败导致的错误。

尝试使用 pip install cffi 安装 cffi 也失败了。

解决方法

更新setuptools 和安装incremental

bash 复制代码
pip install --upgrade setuptools
pip install incremental

然后再安装 cld2-cffi

bash 复制代码
pip install cld2-cffi==0.1.4

参考

python报错distutils.errors.DistutilsError(记一次项目部署问题)_distutils.errors.distutilserror: command ''/usr/b-CSDN博客

相关推荐
小小张说故事4 小时前
Python 的 list append 为什么是均摊 O(1)?拆开过度分配那张表,看容量翻倍背后的暗账
python
benjiangliu4 小时前
恩培趣味计算机视觉-01-conda环境和Python库
开发语言·python·conda
ZhengEnCi4 小时前
用 YOLOv8n + 自研二分类模型做课堂行为识别:从 9000 张标注数据到 Flask 全栈落地
pytorch·python·计算机视觉
成为深度学习高手4 小时前
xLSTM-Mixer:用标量记忆同时混合时间与变量,把循环网络带回多元时序预测
人工智能·python·深度学习·数据挖掘·transformer
骑士雄师4 小时前
多轮对话流程梳理详细版本
python
进击的明明17 小时前
当AI开始“边想边干”:深入聊聊ReAct,以及如何用Python手搓一个简单Agent
python·面试·agent
全栈弄潮儿18 小时前
Python实战第8期:函数
后端·python·编程语言
卷无止境20 小时前
暗流与破局:AI时代的代码安全审查工具全景指南
后端·python
卷无止境1 天前
一人公司的全栈选型指南:让 AI Agent 写得快,也让生意跑得稳
后端·python
滴啦嘟啦哒1 天前
【具身笔记】【π0.5 微调与仿真】五、在MuJoCo中实现可视化仿真
笔记·python·vla·具身