首页 > 编程语言 > 详细

解决 Python.h:没有那个文件或目录 错误的方法

时间:2014-12-05 00:38:12      阅读:324      评论:0      收藏:0      [点我收藏+]

http://www.cnblogs.com/yuxc/archive/2012/05/13/2498019.html

————————————————————————————————————————————————————————

今天在实验室的ubuntu机子上安装Eventlet,在安装依赖包greenlet时出现错误,出现编译错误。

错误如下:

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

 

 

——————————————————————————————————————————————————————————————

 

安装jdk

sudo apt-get install openjdk-7-jdk

解决 Python.h:没有那个文件或目录 错误的方法

原文:http://www.cnblogs.com/cuizhf/p/4145354.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!