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

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

怪我咯
怪我咯

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

reply all(2)
大家讲道理

Enter the following command

xcode-select --install

Solved this problem

伊谢尔伦

Should install openssl related software packages and libraries

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template