Fixing psycopg2 python package on Mac `ld: library not found for -lssl`

If you ever get

ld: library not found for -lssl

You should:

  1. Check you have openssl installed with brew install openssl
  2. Make sure that openssl-bindings are available in PATH: brew link openssl
  3. If the installation still fails and you are using poetry, you can try installing package with pip directly from the virtualenv.
 

Kirill