I\'m compiling psycopg2 and get the following error: Python.h: No such file or directory
How to compile it, Ubuntu12 x64.
if you take a look at PostgreSQL's faq page ( http://initd.org/psycopg/docs/faq.html ) you'll see that they recommend installing pythons development package, which is usually called python-dev. You can install via
python-dev
sudo apt-get install python-dev