【发布时间】:2020-02-12 12:48:46
【问题描述】:
我在 Mac 上运行“pip3 install psycopg2”时遇到了这个错误。
我想第一次安装 psycopg2。
...
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... error
ERROR: Command errored out with exit status 1:
...
我试过 pip,从 GitHub 安装。然而,两者都失败了。
有人可以帮帮我吗?我真的很感激!
【问题讨论】:
-
这可能已经被回答了。请参阅以下主题:stackoverflow.com/questions/34304833/…
-
我尝试了所有建议的解决方案!但没有奏效。我仍然得到相同的输出。
标签: python macos pip installation psycopg2