直接使用# pip install mysql-python 命令报 EnvironmentError: mysql_config not found 错误
安装mysql-phthon 需要用的mysql, mysql-devel, gcc libffi-devel python-devel openssl-devel
如果报:
_mysql.c:2666: error: ‘_mysql_ConnectionObject’ has no member named ‘open’ error: command 'gcc' failed with exit status 1
则检查或重新安装
$ yum install gcc libffi-devel python-devel openssl-devel