centos7 - 解决Python.h No such file or directory

解决Python.h No such file or directory

1.可以先查看一下含python-devel的包

    yum search python | grep python-devel

2.64位安装python-devel.x86_64,32位安装python-devel.i686,我这里安装:

    sudo yum install python-devel.x86_64

3. 进入/usr/include/python2.7看一下现在有没有Python.h,版本不同目录名不同,我这里是2.7版本。其实也可以看到很多.h文件,python需要库或头文件都在这个地方。

猜你喜欢

转载自blog.csdn.net/xuezhangjun0121/article/details/81626705