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.
Source:stackexchange.com