macos - Mac pip安装MySQL-python psycopg2报错
本文介绍了macos - Mac pip安装MySQL-python psycopg2报错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
系统:macOS Sierra
pip install MySQL-python
, pip install psycopg2
均报以下错误:
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'cc' failed with exit status 1
报错显示没有找到lssl这个库,我用Google搜索how to install lssl on mac
还是没有找到如何安装呀,请问这个问题我该怎么解决?谢谢
解决方案
输入以下命令
xcode-select --install
解决了这个问题
这篇关于macos - Mac pip安装MySQL-python psycopg2报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文