当前位置:首页 > 操作系统 > MacOs

Mac中 pip3 install mysqlclient 报错

-lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command ‘clang‘ failed with exit status 1 ---------------------------------------- Failed building wheel for mysqlclient Running setup.py clean for mysqlclient

最下方的报错是:

Mac中 pip3 install mysqlclient 报错 - 文章图片

 

 

Mac中 pip3 install mysqlclient 报错 - 文章图片

这个错误百度+Google查了很久都没有找到正确的解决方法,浪费了很多时间,使得我认为非常有必要把解决方法写出来,防止再有其他人浪费生命.真不知道为什么很少有人遇到和我同样的错误,唯一的解决方法是使用下方命令进行安装:

LDFLAGS=-L/usr/local/opt/openssl/lib pip3 install mysqlclient

下面是我的实例,在虚拟环境中安装的

LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient

Mac中 pip3 install mysqlclient 报错 - 文章图片

 

参考链接:https://github.com/PyMySQL/mysqlclient-python/issues/131

 

Mac中 pip3 install mysqlclient 报错

标签:flags   openssl   images   error   voc   nal   ati   command   stat   

本文系统来源:https://www.cnblogs.com/zmdComeOn/p/12016391.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐