[Answered ]-Build-dependencies for psycopg2 could not be satisfied

2👍

I’m not sure why you are using apt-get build-dep and not apt-get install. The following command should be enough to use Django with PostgreSQL.

sudo apt-get install libpq-dev

Then install psycopg2 using apt-get or pip in your virtual env.

Leave a comment