2016-10-28 63 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

回答