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

时间:2022-10-31 19:38:26

在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

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