首先:
yum install python2-pip -y
pip install MySQL-python
安装时会出现以下错误:
执行以下命令还是报错:
pip install --upgrade pip
yum install mysql-devel
安装mysql-devel后还是报一下错误:
yum install -y gcc
yum install -y
yum install python-devel
然后执行安装就OK了:
pip install MySQL-python
原文地址:http://blog.51cto.com/legehappy/2056038
时间: 2024-10-23 13:32:09