pip安装mysqlclient失败(mysql_config not found)的解决方法

安装mysqlclient时,执行: pip install mysqlclient,出现以下错误:
Command "python setup.py egg_info" failed with error code 1
解决方式:
1.执行 ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
2.将mysql_config链接到/usr/local/bin目录下,再次使用安装命令即可

你可能感兴趣的:(pip安装mysqlclient失败(mysql_config not found)的解决方法)