首页 > 代码库 > _mysql.c:29:20: error: Python.h: No such file or directory

_mysql.c:29:20: error: Python.h: No such file or directory

在Centos系统中安装

pip install MySQL-python 提示:

 

_mysql.c:29:20: error: Python.h: No such file or directory
_mysql.c:40:26: error: structmember.h: No such file or directory

解决方法:
yum install python-devel

#yum install mysql-devel.x86_64

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

_mysql.c:29:20: error: Python.h: No such file or directory