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.