安装python-MySQLdb 出现error: command 'gcc' failed with exit status 1的解决方法

 >>> yum install MySQL-p*

>>>yum install python-devel

>>>cd MySQL-python-1.2.3

>>> python setup.py build
>>> python setup.py install

原文地址:https://www.cnblogs.com/guke/p/3647596.html