致命错误:Python.h:没有那个文件或目录

作者:庄朋龙 发布时间: 2021-01-19 阅读量:0
     src/gevent/libev/corecext.c:95:20: 致命错误:Python.h:没有那个文件或目录
     #include "Python.h"
                        ^
    编译中断。
    error: command 'gcc' failed with exit status 1

解决办法:

yum install python-devel   # 使用python2请执行这条命令
yum install python3-devel  # 使用python3请执行这条命令