系统配置如下:
操作系统:redhat5
python:python 2.7.4
pip:9.0.3
安装过程:
一、本来使用命令
pip install MySQLdb
报错:
Could not find a version that satisfies the requirement MySQLdb (from versions: )
No matching distribution found for MySQLdb
发现命令错了,修改为
pip install MySQL-python
报错:
Command "python setup.py egg_info" failed with error code 1 in XXXXXX
解决办法:
yum install python-devel mysql-devel
pip install MySQL-python
安装成功!