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
原文:https://www.cnblogs.com/shijianyujingshen/p/13192615.html
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!