1. 程式人生 > >python3中安裝LTP報錯“Failed building wheel for pyltp”的解決辦法

python3中安裝LTP報錯“Failed building wheel for pyltp”的解決辦法

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

安裝成功。