Ubuntu下安装mysql-python包
sudo apt-get install libmysqld-dev
sudo apt-get install libmysqlclient-dev
sudo apt-get install python-dev
sudo pip install mysql-python
参考链接 http://www.cnblogs.com/coser/archive/2012/01/11/2319125.html
centos:
yum install python-devel mysql-devel