macos - Mac pip安装MySQL-python psycopg2报错
怪我咯
怪我咯 2017-04-18 09:45:51
0
2
848

系统: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 还是没有找到如何安装呀,请问这个问题我该怎么解决?谢谢

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(2)
大家讲道理

输入以下命令

xcode-select --install

解决了这个问题

伊谢尔伦

应该装 openssl 相关软件包和库

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!