Python psycopg2 – Fixing Python.h: No Such File or Directory Error

psycopg2python

I'm compiling psycopg2 and get the following error:
Python.h: No such file or directory

How to compile it, Ubuntu12 x64.

Best Answer

Python 2:

sudo apt-get install python-dev

Python 3:

sudo apt-get install python3-dev
Related Question