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

相关推荐
槑槑紫7 分钟前
pytorch(gpu版本安装)
人工智能·pytorch·python
知识中的海王8 分钟前
猿人学web端爬虫攻防大赛赛题第15题——备周则意怠-常见则不疑
爬虫·python
小白学大数据16 分钟前
如何避免爬虫因Cookie过期导致登录失效
开发语言·爬虫·python·scrapy
测试老哥27 分钟前
接口测试和功能测试详解
自动化测试·软件测试·python·功能测试·测试工具·测试用例·接口测试
小白学大数据1 小时前
Python自动化解决滑块验证码的最佳实践
开发语言·python·自动化
Albert Edison1 小时前
Python入门基础
开发语言·python
时光旅人01号1 小时前
I-CON: A Unifying Framework for Representation Learning
python
T0uken1 小时前
【Python】Matplotlib:立体永生花绘制
开发语言·python·matplotlib
豌豆花下猫2 小时前
Python 3.14 t-string 要来了,它与 f-string 有何不同?
后端·python·ai
吴佳浩2 小时前
Python入门指南(四)-项目初始化
人工智能·后端·python