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博客

相关推荐
Envyᥫᩣ2 分钟前
Python中的自然语言处理:从基础到高级
python·自然语言处理·easyui
哪 吒2 分钟前
华为OD机试 - 几何平均值最大子数(Python/JS/C/C++ 2024 E卷 200分)
javascript·python·华为od
我是陈泽5 分钟前
一行 Python 代码能实现什么丧心病狂的功能?圣诞树源代码
开发语言·python·程序员·编程·python教程·python学习·python教学
hakesashou6 分钟前
python全栈开发是什么?
python
优雅的小武先生16 分钟前
QT中的按钮控件和comboBox控件和spinBox控件无法点击的bug
开发语言·qt·bug
创作小达人25 分钟前
家政服务|基于springBoot的家政服务平台设计与实现(附项目源码+论文+数据库)
开发语言·python
ZPC821035 分钟前
Python使用matplotlib绘制图形大全(曲线图、条形图、饼图等)
开发语言·python·matplotlib
镜花照无眠37 分钟前
Python爬虫使用实例-mdrama
开发语言·爬虫·python
aaasssdddd961 小时前
python和c
c语言·开发语言·python
爱写代码的小朋友1 小时前
Python的几个高级特性
python