I am trying to set up a PostgreSQL database for my django project, which I believe I have done now thanks to the replies to my last question Problems setting up a postgreSQL
I installed it successfully using these commands:
sudo apt-get install libpq-dev python-dev pip install psycopg2