码迷,mamicode.com
首页 > 编程语言 > 详细

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

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

标签:blog   http   ar   os   sp   strong   on   文件   div   

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:没有那个文件或目录 错误的方法

标签:blog   http   ar   os   sp   strong   on   文件   div   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!