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