[pyltp][ubuntu][python][转载]ubuntu安装pyltp

安装依赖:

sudo apt install git
sudo apt install cmake
安装ltp:

git clone  https://gitee.com/fastsource/ltp
cd ltp
pip install -r requirements.txt
python setup.py install
安装pyltp

git clone https://gitee.com/fastsource/pyltp
cp -r ltp/ pyltp/
cd pyltp
git submodule init
git submodule update
python setup.py install
验证安装:

python

import ltp

import pyltp

[pyltp][ubuntu][python][转载]ubuntu安装pyltp_第1张图片

 

你可能感兴趣的:(Python,ubuntu,linux,运维)