错误提示

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

include "Python.h"

看到是缺失"Python.h",所以就安装以下python的devel环境

python2执行以下命令

yum install python-devel

python3执行以下命令

yum install python3-devel

https://blog.csdn.net/enweitech/article/details/80728434