Can't install psycopg2 package through pip install... Is this because of Sierra?
<p>I am working on a project for one of my lectures and I need to download the package psycopg2 in order to work with the postgresql database in use. Unfortunately, when I try to pip install psycopg2 the following error pops up:</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>Does anyone know why this is happening? Is it because Sierra has not supported some packages? Thanks in advance!</p>

<ol>
<li><p>Install/update Xcode developer tools  </p>

<pre><code>xcode-select --install
</code></pre></li>
<li><p>Query postgres path</p>

<pre><code>find / -name pg_config  2&gt;/dev/null
</code></pre></li>
<li><p>Install psycopg2, use the path you got in <strong>step 2</strong>. Mine was '/usr/local/Cellar/postgresql/9.5.0/bin/pg_config'</p>

<pre><code>PATH=$PATH:/usr/local/Cellar/postgresql/9.5.0/bin/ pip install psycopg2
</code></pre></li>
</ol>

python pip psycopg2