MySQL-python 安装

 

RedHat or Centos 7.5 of python2.7.5

yum install python-devel mysql-devel gcc -y
pip install MySQL-python==1.2.5

refer to https://www.jianshu.com/p/1d6824a77f1a
https://pypi.org/project/MySQL-python/

RedHat or Centos 7.5 of python3.6.4

MySQL-3.23 through 5.5 and Python-2.4 through 2.7 are currently supported. Python-3.0 will be supported in a future release. PyPy is supported.