fatal error: Python.h: No such file or directory
gcc - fatal error: Python.h: No such file or directory - Stack Overflow c - I have Python on my Ubuntu system, but gcc can't find Python.h - Stack Overflow
sudo apt-get install python3-dev
locate Python.h
# see if you have Python.h under /usr/include/python3.6/
sudo yum install python36u-devel
change
#include "Python.h"
into
#include to "python3.6/Python.h"