Skip to content

Installing `psycopg2` in virtualenvs

Christopher Körber edited this page Nov 4, 2019 · 1 revision

On some systems I have encountered issues with installing the postgres backend for Django. The issue is related to not being able to install psycopg2 in a virtualenv. The solution on MacOS was related to fixing a linker error to openssl:

LDFLAGS=-L/path/to/openssl/lib pip install psycopg2

I have not test yet if this also works for other systems.

Clone this wiki locally