安装python-mysql:
#0 安装依赖包
 yum -y install rpm-build gcc-c++
 yum install gcc libffi-devel python-devel openssl-devel -y

#1 安装setuptools
   wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
   tar zxf setuptools-0.6c11.tar.gz
   cd setuptools-0.6c11
   python setup.py build
   python setup.py install
   
   easy_install MySQL-python


#2 安装mysql
    wget https://pypi.python.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip#md5=654f75b302db6ed8dc5a898c625e030c
   在 http://sourceforge.net/projects/mysql-python/ 这个网站中下载MySQLdb类库
   tar zxf MySQL-python-1.2.4b4.tar.gz
   cd MySQL-python-1.2.4b4
   python setup.py build
   python setup.py install

方法二:
#3 安装pip工具
https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9

tar zxf  pip-9.0.1.tar.gz
python setup.py build
python setup.py install

pip install MySQL-python

方法三:
  http://pypi.python.org/pypi/setuptools
  easy_install mysql-python

#######最直接靠谱的安装方法
 yum -y install MySQL-python.x86_64