解决Pynlpir分词License过期问题

在ubuntu16.04的Anaconda2环境下使用pip install pynlpir来安装pynlpir,

却在运行时报错,提示Pynlpir分词License过期

pynlpir.LicenseError: Your license appears to have expired. Try running "pynlpir update".

解决方法:

①找到NLPIR.user, 并重命名做备份

cd anaconda2/envs/py37/lib/python3.7/site-packages/pynlpir/Data
ls
mv NLPIR.user NLPIR.user.bak

②下载新的NLPIR.user

并移动到anaconda2/envs/py37/lib/python3.7/site-packages/pynlpir/Data

mv NLPIR.user /home/UserName/anaconda2/envs/py37/lib/python3.7/site-packages/pynlpir/Data

③更新

pynlpir update

 

你可能感兴趣的:(pynlpir)