Ubuntu16.04LTS下安装pyltp错误

In file included from patch/include/boost/python/detail/prefix.hpp:13:0,
                     from patch/include/boost/python/args.hpp:8,
                     from patch/include/boost/python.hpp:11,
                     from src/pyltp.cpp:15:
    patch/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: 没有那个文件或目录
     # include
                           ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

有这一句可知:

patch/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: 没有那个文件或目录
     # include

缺东西,然后安装:

sudo apt-get python3.6-dev

pip install pyltp

解决。

你可能感兴趣的:(软件安装踩坑)