1、yum install python-devel 2、yum install mysql-devel 3、yum -y install python-pip 4、pip install mysql-python