在linux系统安装MySQL-Python模块一直在报这个错,Google搜索了很久,看了一些不靠谱的解决方案浪费掉了一些时间,所幸在国外的stackoverflow上找到真正的解决方案,把解决办法写在这里,没有梯子的童鞋可以参考参考:
It seems mysql_config is missing on your system or the installer could not find it. Be sure mysql_config is really installed.
For example on Debian/Ubuntu you must install the package:
sudo apt-get install libmysqlclient-dev
Maybe the mysql_config is not in your path, it will be the case when you compile by yourself the mysql suite.
For CentOS:
yum install python-devel mysql-devel