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