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

相关推荐
忘忧记5 分钟前
用 Python 30 分钟做出自己的记事本
开发语言·python
电化学仪器白超15 分钟前
PPTSYNC软件配置①
python·单片机·嵌入式硬件·自动化
索荣荣20 分钟前
Java Cookie 全面指南:从原理到 Spring Boot 实战
java·开发语言·python
AAD5558889921 分钟前
YOLO13-C3k2-FDConv:足球检测与定位的创新应用
python
多恩Stone23 分钟前
【3DV 进阶-12】Trellis.2 数据处理脚本细节
人工智能·pytorch·python·算法·3d·aigc
极客小云25 分钟前
【基于AI的自动商品试用系统:不仅仅是虚拟试衣!】
javascript·python·django·flask·github·pyqt·fastapi
Warren9825 分钟前
一次文件上传异常的踩坑、定位与修复复盘(Spring Boot + 接口测试)
java·开发语言·spring boot·笔记·后端·python·面试
JMchen12326 分钟前
Android相机硬件抽象层(HAL)逆向工程:定制ROM的相机优化深度指南
android·开发语言·c++·python·数码相机·移动开发·android studio
不会代码的小测试30 分钟前
UI自动化-Grid分布式运行
运维·分布式·python·selenium·自动化
百***074532 分钟前
进阶实战:Veo3.1 4K API深度集成短剧/漫剧系统,避坑与性能优化指南
python·性能优化