pip安装mysql-python报致命错误:my_config.h:没有那个文件或目录

http://ju.outofmemory.cn/entry/95215


pip install mysql-python

_mysql.c:44:23: 致命错误:my_config.h:没有那个文件或目录

编译中断。

error: command 'gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/local/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_root/mysql-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4GRUO2-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/mysql-python

没有找到my_config.h

你只需要在 yum install mysql-devel 就可以了



你可能感兴趣的:(pip安装mysql-python报致命错误:my_config.h:没有那个文件或目录)