安装mysql-python时报错
pip install mysql-python时报:
Command "/usr/home/root/python2.7.14/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-yabeSc/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-fT9aIj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-yabeSc/mysql-python/
原因:
未安装mysql-devel开发包
yum install mysql-devel