qazdrfvhuwyb 2022-04-15 15:02 采纳率: 100%
浏览 1403
已结题

pip安装pyhanlp时一直这样报错,有什么解决办法吗

D:\自然语言处理>pip install pyhanlp
Collecting pyhanlp
Using cached pyhanlp-0.1.84.tar.gz (136 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]

  ----------------------------------------

  抱歉,暂不支持 Python 3.9 及以上版本。请执行如下命令:

      conda install -c conda-forge python=3.8 openjdk jpype1=0.7.0 -y
      pip install pyhanlp

  详细安装教程:https://bbs.hankcs.com/t/topic/13#install-1

  [end of output]

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.

  • 写回答

1条回答 默认 最新

  • keenanli 2022-04-15 15:13
    关注

    不支持3.9

    conda install -c conda-forge python=3.8 openjdk jpype1=0.7.0 -y
    pip install pyhanlp

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 4月23日
  • 已采纳回答 4月15日
  • 创建了问题 4月15日

悬赏问题

  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系
  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码