2016-10-28 70 views
1

我试图使用PIP和得到以下错误psycopg2安装到virtualenv中安装psycopg2:不能在Mac OS与PIP

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库蟒蛇,并不能找到任何提到这个错误。难道我做错了什么?

pip 8.1.2 
python 2.7.10 
virtualenv 12.0.7 
macos 10.12.1 

更新:其实像这样的问题是这样一个的副本:Can't install psycopg2 package through pip install... Is this because of Sierra?从这个问题的解决方案帮助了我。这个问题是在丢失xcode-cli工具和xcode-select --install解决了我的问题。

+0

尝试安装openssl。我怀疑这会清除它。 – DejaVuSansMono

+0

@DejaVuSansMono尝试过'pip install pyopenssl'。没有变化。 – Paul

回答