1.sudo yum install -y MysqL-devel python-devel python-setuptools
2.sudo yum install gcc
3.pip install MysqL-python 集群中每台机器进行上面操作 终端输入
>>> import MysqLdb >>> OK