qazdrfvhuwyb
2022-04-15 15:02
采纳率: 100%
浏览 424

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条回答 默认 最新

相关推荐 更多相似问题