我正在努力mod_wsgi 3.3上班。当我运行时,make它告诉我我缺少Python开发人员软件包。如何获取并安装Python开发人员软件包?
mod_wsgi 3.3
make
我得到的错误如下:
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实例)
yum install python-devel 将工作。
yum install python-devel
如果yum不起作用,请使用
yum
apt-get install python-dev