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

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

环境

python 复制代码
Python 3.10

详情

安装 pkuseg 分词库失败的错误。

错误提示

复制代码
ERROR: Could not find a version that satisfies the requirement cython (from versions: none)
`ERROR: No matching distribution found for cython`
distutils.errors.DistutilsError: Command '['/home/zmp/.conda/envs/keytechcpu/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpx394x6lt', '--quiet', '`cython`']' returned non-zero exit status 1.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

原因是安装cython依赖失败报错。

解决方法

可以手动安装

bash 复制代码
pip install cython

然后安装 pkuseg

bash 复制代码
pip install pkuseg==0.0.25
相关推荐
麦麦大数据27 分钟前
vue+django农产品价格预测和推荐可视化系统[带知识图谱]
vue.js·python·django·知识图谱·推荐算法·价格预测·农业大数据
liwulin05061 小时前
【JAVAFX】实现屏幕指定区域截图,带尺寸显示
服务器·前端·python
一个天蝎座 白勺 程序猿2 小时前
Python爬虫(11)Python数据存储实战:深入解析NoSQL数据库的核心应用与实战
开发语言·python·nosql
喜欢吃豆3 小时前
大模型api压力测试
服务器·数据库·人工智能·python·prompt·压力测试
正在走向自律4 小时前
AI数字人:人类身份与意识的终极思考(10/10)
人工智能·python·数字孪生·ai数字人·多模态交互
神奇侠20244 小时前
基于tabula对pdf中多个excel进行识别并转换成word中的优化(四)
python·pdf·word·tabula
serve the people4 小时前
centos上安装python的3.13版本
linux·python·centos
九班长4 小时前
JMeter WebSocket 压测详细步骤(支持 ws+proto 协议)
开发语言·python·网络协议·jmeter·golang
Json_181790144804 小时前
闲鱼商品详情API接口概述及JSON数据参考
android·大数据·python
Silence4Allen5 小时前
Pycharm 代理配置
ide·python·pycharm·proxy·代理