使用pip install mysqlclient出错,如下图: 解决: 使用下面命令安装 LDFLAGS=-L/usr/local/opt/openssl/lib pip3 install mysqlclient 参考链接