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 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依赖失败报错。

解决方法

可以手动安装

pip install cython

然后安装 pkuseg

pip install pkuseg==0.0.25

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-17 11:22:01       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-17 11:22:01       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-17 11:22:01       82 阅读
  4. Python语言-面向对象

    2024-06-17 11:22:01       91 阅读

热门阅读

  1. 为什么程序员老喜欢买云服务器?

    2024-06-17 11:22:01       31 阅读
  2. 只出现一次的数字 - LeetCode 热题 96

    2024-06-17 11:22:01       27 阅读
  3. Redisson实现分布式锁

    2024-06-17 11:22:01       30 阅读
  4. django学习入门系列之第二点《案例1:用户注册》

    2024-06-17 11:22:01       30 阅读
  5. 指令选择原理与实现方式

    2024-06-17 11:22:01       35 阅读
  6. 软件测试的内容以及维度

    2024-06-17 11:22:01       28 阅读
  7. PostgreSQL 数据库选择指南

    2024-06-17 11:22:01       27 阅读