码迷,mamicode.com
首页 > 其他好文 > 详细

【NLP】HanLP环境

时间:2018-12-21 15:23:50      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:red   port   replace   ace   open   pen   fail   access   blank   

 

1、参考:https://github.com/hankcs/pyhanlp

2、问题:

C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-u617cfx3\jpype1\setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building ‘_jpype‘ extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

----------------------------------------
Command "d:\programdata\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__=‘C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-u617cfx3\\jpype1\\setup.py‘;f=getattr(tokenize, ‘open‘, open)(__file__);code=f.read().replace(‘\r\n‘, ‘\n‘);f.close();exec(compile(code, __file__, ‘exec‘))" install --record C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-v70vznix\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-u617cfx3\jpype1\

3、解决方案:

--下载JPype1-0.6.3-cp36-cp36m-win_amd64.whl

--拷贝至:D:\ProgramData\Anaconda3\Scripts

--pip install JPype1-0.6.3-cp36-cp36m-win_amd64.whl

 

【NLP】HanLP环境

标签:red   port   replace   ace   open   pen   fail   access   blank   

原文地址:https://www.cnblogs.com/defineconst/p/10155588.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!