Missing Python header files

Installing development headers and static libraries using apt-get.

Updated over a week ago

You might run into the following error when trying to compile a library that interacts with Python:  

fatal error: Python.h: No such file or directory
    #include <Python.h>

You are possibly missing the Python development headers, which can be found in the package python-dev . Install python-dev via apt-get in the Run Environment screen.

Note: the apt-get package python  only includes the runtime components rather than the development headers.

Did this answer your question?