报错信息如下:
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
解决方案:
1、切换到root用户,yum install libmysqlclient-dev
2、重新pip install mysql 即可
参考博文: