Mac装pyhanlp及jpype1报错
因为我用conda建了两个环境,第一个环境成功装了pyhanlp,java也是早就装好的,第二个环境就没多想,直接pip install pyhanlp了,结果报了jpype1的错
Building wheel for jpype1 (setup.py) … error
然后我pip install jpype1装了1.3.0的,结果一样的错。仔细看了一下,它要的是0.7.0,我又pip 0.7.0然后装不上。试了网上的方法都不行,后来有篇文章提到了github,上去一看,用这个命令装好的。
https://github.com/hankcs/pyhanlp
conda install -c conda-forge openjdk python=3.8 jpype1=0.7.0 -y
pip install pyhanlp