<p>我正在为我的一个讲座做一个项目,我需要下载psycopg2包才能使用postgresql数据库。不幸的是,当我尝试pip install psycopg2时,会弹出以下错误:</p>
<pre><code>ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1
</code></pre>
<p>有人知道为什么会这样吗?是因为Sierra不支持某些包吗?提前谢谢!</p>