win10环境下,使用 pip install pyltp 安装LTP时,命令行报错 Failed building wheel for pyltp
解决方法:
先下载ltp对应python版本的whl文件
pyltp-0.2.1-cp35-cp35m-win_amd64.whl
pyltp-0.2.1-cp36-cp36m-win_amd64.whl
再安装whl文件
# python3.5
pip install D:\pyltp-0.2.1-cp35-cp35m-win_amd64.whl
# python3.6
pip install D:\pyltp-0.2.1-cp36-cp36m-win_amd64.whl
再安装ltp
pip install pyltp
安装成功。