作者:小--瑜Gg | 来源:互联网 | 2023-09-18 20:27
mac系统安装mysqlclient时,会报错OSError:mysql_confignotfound 解决办法在项目路径下输入以下内容PATH$PATH:usrlocalmy
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