_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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

——————————————————————————————————————————————————————————————————————————————

    原文作者:泽锦
    原文地址: https://www.cnblogs.com/zejin2008/p/6866111.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞