I am not sure whether this is really a postgres issue or a python / Django issue - please let me know if I should be posting this elsewhere.
I have installed Ubuntu 13.04, Postgres 9.1 and Django. (strangely, the Ubuntu software centre says I have Python 3.3, but when I go into the Python shell it says 2.7.4).
I followed the instructions on configuring Postgres from
http://blog.iiilx.com/programming/how-to-install-postgres-on-ubuntu-for-django/, up to the point of adding a line to the pg_hba.conf file - Ubuntu would not let me write to this.
When I tried to install psycopg2 (pip install psycopg2), I got the following error:
ERROR: you need to install postgresql-server-dev-X.Y for building a server side extension or libpq-dev for building a client-side application.
What does this mean? How do I proceed?
Many thanks in advance for your help.