I\'m compiling psycopg2 and get the following error: Python.h: No such file or directory
How to compile it, Ubuntu12 x64.
This is a dependency issue.
I resolved this issue on Ubuntu using apt-get. Substitute it with a package manager appropriate to your system.
For any current Python version:
sudo apt-get install python-dev
For alternative Python version:
sudo apt-get install python-dev
For example 3.5 as alternative:
sudo apt-get install python3.5-dev