python提示缺"Python.h"库

pip install库时提示:

     #include "Python.h"
                        ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

 

说明缺乏依赖库,

执行yum install python-devel

你可能感兴趣的:(python)