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

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 Tpad api账户 api口令
    • ¥30 ppt进度条制作,vba语言
    • ¥15 stc12c5a60s2单片机测光敏ADC
    • ¥15 生信simpleaffy包下载
    • ¥15 请教一下simulink中S函数相关问题
    • ¥15 在二层网络中,掩码存在包含关系即可通信
    • ¥15 端口转发器解析失败不知道电脑设置了啥
    • ¥15 Latex算法流程图行号自定义
    • ¥15 关于#python#的问题:我在自己的电脑上运行起来总是报错,希望能给我一个详细的教程,(开发工具-github)
    • ¥40 基于51单片机实现球赛计分器功能