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

posted @ 2020-06-25 19:06  shijianyujingshen  阅读(243)  评论(0编辑  收藏  举报