致命错误: 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无法更新,就更新一下源

posted on 2014-04-28 17:23  雨渐渐  阅读(1982)  评论(0编辑  收藏  举报

导航