Python安装mysql报错EnvironmentError: mysql_config not found

报错信息如下:
        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 即可

 

参考博文:

https://www.jianshu.com/p/1d6824a77f1a

你可能感兴趣的:(Python安装mysql报错EnvironmentError: mysql_config not found)