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

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:没有那个文件或目

相关文章:

你感兴趣的文章:

标签云: