hope you can help with my issue (that is similar to previous ones, but cannot be solve with same suggestions).
Os: Centos 7.
On a virtual environment running python 3.5 (latest stable version), I am trying to install psycopg2 by using pip3/pip/easy_install.
In all scenarios, I get the following error:
fatal error: Python.h: No such file or directory
If you are installing from source there are several system dependancies that should be fulfilled:
But Python.h is definitely coming from the python-devel (and python3X-devel) package so if it's not found there might be something misconfigured on your system. https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
Alternatively you could use the system package using the package manager so that it solves dependancies for you.
yum install python-psycopg2 # python35-psycopg2 for py3