Python安装hanlp问题

安装了miniconda,conda install -c conda-forge openjdk python=3.8 jpype1=0.7.0 -y命令执行成功,pip install pyhanlp报错:
using legacy ‘setup.py install’ for jpype1,since package ‘wheel’ is not installed.
Installing collected packages:jpype1,pyhanlp
Runing setup.py install for jpype1…error
(ERROR:Command errored out with exit status 1:等大量报错代码)

1.安装Visual Studio 2022 Current。C++桌面开发工具包和Python开发工具包必选
2.pip install pyhanlp

1 Like