I am trying to compile a Python extension written in C on a CentOS machine. I am getting
error: Python.h: No such file or directory
It works fine on ubuntu, where I have python-dev installed using apt-get.
I tried installing python-devel using
yum install python-devel
but it is already installed. How do I fix this error?
find / -name Python.h 2>/dev/null
does anything come up?CentOS Linux release 7.1.1503
andyum install python-devel
fixed it.