When using the PIP install # # #时, sometimes there will be problems like the title, and the problems I have encountered are as follows:
_posixsubprocess.c:3:20:fatal error:python.h:no such file or directory
#include "Python.h"
^
compilation Terminated.
Error:command ' gcc ' failed with exit status 1
This is the problem I had when I installed the Matplotlib module, I reinstalled the GCC and everything I could think of, but I couldn't. On the internet to find a bit, said it is actually installed a corresponding devel environment can be.
For example, I'm here to give an error
#include "Python.h"
^
compilation terminated.
Error:command ' gcc ' failed with exit status 1
In fact, as long as the need to see what is missing, I lack of Python.h, so install the following Python devel environment is good
Yum Install Python-devel
Other similar problems, corresponding to download the corresponding devel environment.