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 most likely missing the Python development headers, which can found in the package python-dev – as opposed to python which only includes the runtime components – on Ubuntu (the Linux distribution that Code Ocean uses for its base environments). Simply install python-dev via apt-get in the Run Environment screen.

Did this answer your question?