问题 /usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory 解决方案 make clean export CPLUS_INCLUDE_PATH=/usr/include/python2.7 make all -j8 原因 python路径都改为了anaconda的路径,但是CPLUS的path没有设置,系统中我也没把anaconda设置成默认的python导致的。