title: Can't install psycopg2 in mac os with pip
body: <p>I'm trying to install psycopg2 into virtualenv using pip and getting the following error:</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 'cc' failed with exit status 1
  </code></pre>
  
  <p>Tried to google <code>lssl</code> library for python and can't find any mentions of this error. Am I doing something wrong?</p>
  
  <pre><code>pip 8.1.2
  python 2.7.10
  virtualenv 12.0.7
  macos 10.12.1 
  </code></pre>
  
  <p><strong>Update:</strong> Actually looks like this question is a duplicate of this one: <a href="https://stackoverflow.com/questions/39767810/cant-install-psycopg2-package-through-pip-install-is-this-because-of-sierra">Can&#39;t install psycopg2 package through pip install... Is this because of Sierra?</a> The solution from that question helped me. The issue was in missing xcode-cli tools and <code>xcode-select --install</code> fixed my problem.</p>