安装依赖:
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 [pyltp][ubuntu][python][转载]ubuntu安装pyltp](http://www.mshxw.com/aiimages/31/916279.png)
