MacOS 10.15.5安装MySql-python错误处理
1、如果出现myconfig.h找不到:
cp /usr/local/include/mysql/mysql.h /usr/local/include/mysql/my_config.h
2、如果ld报错:ld: library not found for -lssl,直接安装一个老版本:
env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip --no-cache install mysql-python==1.2.5