如何安装python程序包_如何安装python开发人员包?

在尝试安装mod_wsgi 3.3时遇到了错误,提示缺少Python开发者包。这个问题可以通过运行'yum install python-devel'来解决。如果'yum'不可用,可以尝试使用'apt-get install python-dev'。这将安装必要的头文件,使mod_wsgi能够成功编译。
摘要由CSDN通过智能技术生成

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?

The error I get is as follows:

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

System (Amazon EC2 instance)

Apache 2.2.16 (Unix)

Amazon Linux(Red Hat 4.4.4-13) AMI Beta Version 2011.02

Python 2.6.6

解决方案

yum install python-devel will work.

If yum doesn't work then use

apt-get install python-dev

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值