Mac 安装mysqlclient报错 OSError: mysql_config not found

1 首先安装 brew
参考:
https://blog.csdn.net/yuanshangshenghuo/article/details/106599836

2 然后配置
.bash_profile中添加 export LDFLAGS="-L/usr/local/opt/openssl/lib" export CPPFLAGS="-I/usr/local/opt/openssl/include" export PATH="/usr/local/opt/mysql-client/bin:$PATH"

3 然后pip 安装 mysqlclient

Linux配置
https://blog.csdn.net/luansj/article/details/112002871

posted @ 2022-03-29 01:59  Johnsonbug  阅读(190)  评论(0编辑  收藏  举报