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

In file included from greenlet.c:5:0:
greenlet.h:8:20: 致命错误: Python.h:没有那个文件或目录
编译中断。

error: Setup script exited with error: command 'gcc' failed with exit status 1 

 

解决方法是安装python-dev,这是Python的头文件和静态库包:

sudo apt-get install python-dev

 

 

如果这个python-dev无法更新,就更新一下源

你可能感兴趣的:(python)