如何安装python开发人员包? [英] How to install python developer package?

查看:95
本文介绍了如何安装python开发人员包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使mod_wsgi 3.3正常工作.当我运行make时,它告诉我我缺少Python开发人员软件包.如何获取并安装Python开发人员软件包?

I am trying to get mod_wsgi 3.3 to work. When I run make it is telling me that I am missing the Python developer package. How do I get and install the Python developer package?

我得到的错误如下:

mod_wsgi.c:135:20: error: Python.h: No such file or directory
mod_wsgi.c:138:2: error: #error Sorry, Python developer package does not appear to be installed.
mod_wsgi.c:142:2: error: #error Sorry, mod_wsgi requires at least Python 2.3.0 for Python 2.X.
mod_wsgi.c:150:2: error: #error Sorry, mod_wsgi requires that Python supporting thread.
mod_wsgi.c:153:21: error: compile.h: No such file or directory
mod_wsgi.c:154:18: error: node.h: No such file or directory
mod_wsgi.c:155:20: error: osdefs.h: No such file or directory

系统(Amazon EC2实例)

System (Amazon EC2 instance)

  • Apache 2.2.16(Unix)
  • Amazon Linux(Red Hat 4.4.4-13)AMI Beta版本2011.02
  • Python 2.6.6

推荐答案

yum install python-devel将起作用.

如果yum不起作用,请使用

apt-get install python-dev

这篇关于如何安装python开发人员包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆