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

     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请执行这条命令

庄朋龙
庄朋龙

一个爱生活的技术菜鸟

留下评论

您的电子邮箱地址不会被公开。 必填项已用*标注