_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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

posted @ 2017-05-17 10:07  泽锦  阅读(3449)  评论(0编辑  收藏  举报