Django(11)mac安装mysqlclient报错

mac系统安装mysqlclient时,会报错OSError: mysql_config not found
 

解决办法

在项目路径下输入以下内容

PATH="$PATH":/usr/local/mysql/bin/
mysql_config

最后输入pip3 install mysqlclient即可成功安装

Successfully built mysqlclient
Installing collected packages: mysqlclient
Successfully installed mysqlclient-2.0.3
posted @ 2021-05-16 09:40  Silent丿丶黑羽  阅读(128)  评论(0编辑  收藏  举报