无法在centos上安装MysqlDB Python2.7

Can not install MysqlDB on centos Python2.7

我有问题。我无法安装 MysqlDB。

OS: CentOs6.8 x64 Python : 2.7.6

pip2.7 install mysql-python

pip install mysql-python

这是我的错误:

Command "/usr/local/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-rgqmTQ/mysql-python/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-G4kWRa-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-rgqmTQ/mysql-python/

试试这个 dind.biz

# yum install python-devel mysql-devel

# pip install mysql-python