解决fatal error: Python.h: No such file or directory

在ubuntu14.04 下安装python的 netifaces包时遇到fatal error: Python.h: No such file or directory问题

首先查看/user/include/python2.x目录,是否包含Python.h,如果有的话可能是python版本不对

如果没有的话,需要安装python-dev包

sudo apt-get install python-dev

猜你喜欢

转载自blog.csdn.net/coolwaterld/article/details/51280534