title: psycopg2 gives error while installing in macOS Catalina 10.15.5
body: <p>I'm trying to install psycopg2 in my django project. it's gives me this error. I already install (psycopg2 binary, pillow &amp; other packages these are working fine). I just reinstalled my macOS &amp; Xcode. I'm using python 3.8.3 &amp; Django 3.0.5 and Homebrew 2.4.5 and my PostgreSQL 12.3</p>
  <pre><code>Running setup.py install for psycopg2 ... error
  ERROR: Command errored out with exit status 1:
  
   
   command:
   /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c
   'import sys, setuptools, tokenize; sys.argv[0] =
   '&quot;'&quot;'/private/var/folders/hj/q_49d8351l11gj135qs6c01r0000gn/T/pip-install-zr_qlm_k/psycopg2/setup.py'&quot;'&quot;';
   __file__='&quot;'&quot;'/private/var/folders/hj/q_49d8351l11gj135qs6c01r0000gn/T/pip-install-zr_qlm_k/psycopg2/setup.py'&quot;'&quot;';f=getattr(tokenize,
   '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;',
   '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))'
   install --record
   /private/var/folders/hj/q_49d8351l11gj135qs6c01r0000gn/T/pip-record-rc16k7t9/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/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: Command errored out with exit status 1:
   /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c
   'import sys, setuptools, tokenize; sys.argv[0] =
   '&quot;'&quot;'/private/var/folders/hj/q_49d8351l11gj135qs6c01r0000gn/T/pip-install-zr_qlm_k/psycopg2/setup.py'&quot;'&quot;';
   __file__='&quot;'&quot;'/private/var/folders/hj/q_49d8351l11gj135qs6c01r0000gn/T/pip-install-zr_qlm_k/psycopg2/setup.py'&quot;'&quot;';f=getattr(tokenize,
   '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;',
   '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))'
   install --record
   /private/var/folders/hj/q_49d8351l11gj135qs6c01r0000gn/T/pip-record-rc16k7t9/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/psycopg2
   Check the logs for full command output.
  </code></pre>