Home  >  Q&A  >  body text

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

怪我咯怪我咯2728 days ago849

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:47:51

    Enter the following command

    xcode-select --install

    Solved this problem

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:47:51

    Should install openssl related software packages and libraries

    reply
    0
  • Cancelreply