user2957539 user2957539 - 1 year ago 57
Python Question

psycopg: Python.h: No such file or directory

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

How to compile it, Ubuntu12 x64.

Answer Source

Python 2:

sudo apt-get install python-dev

Python 3:

sudo apt-get install python3-dev