Python 安装wsgi_模块debian

Python 安装wsgi_模块debian,python,pip,wsgi,Python,Pip,Wsgi,我无法使用pip安装wsgi_模块。我犯了以下错误 Debian GNU/Linux 8(jessie) Pip版本:PIP10.0.1(python 3.4) root$pip3安装wsgi_模块 收集wsgi_模块 使用缓存https://files.pythonhosted.org/packages/15/1c/decce9bf785d96d3a1b791b33f2d7b1939d916dc67868e1145ec44e5c13a/wsgi_module-4.0b4.tar.gz 从命令p

我无法使用pip安装wsgi_模块。我犯了以下错误

Debian GNU/Linux 8(jessie)
Pip版本:PIP10.0.1(python 3.4)

root$pip3安装wsgi_模块
收集wsgi_模块
使用缓存https://files.pythonhosted.org/packages/15/1c/decce9bf785d96d3a1b791b33f2d7b1939d916dc67868e1145ec44e5c13a/wsgi_module-4.0b4.tar.gz
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/tmp/pip-install-62ltkhsl/wsgi module/setup.py”,第42行,在
INCLUDEDIR=get_apxs_config('INCLUDEDIR')
文件“/tmp/pip-install-62ltkhsl/wsgi module/setup.py”,第36行,在get_apxs_config中
stdout=subprocess.PIPE,stderr=subprocess.PIPE)
文件“/usr/lib/python3.4/subprocess.py”,第859行,在__
恢复信号,启动新会话)
文件“/usr/lib/python3.4/subprocess.py”,第1457行,在执行子进程中
引发子项异常类型(errno\u num、err\u msg)
FileNotFoundError:[Errno 2]没有这样的文件或目录:“apxs”
----------------------------------------
命令“python setup.py egg_info”在/tmp/pip-install-62ltkhsl/wsgi模块中失败,错误代码为1/

?谢谢。我找到了这个答案,它对我很有用:sudo apt get install apache2 dev然后pip install mod_wsgi是我所需要做的全部;无需重新启动–@Nick Aug 4'15 20:48
root$ pip3 install wsgi_module
Collecting wsgi_module
Using cached https://files.pythonhosted.org/packages/15/1c/decce9bf785d96d3a1b791b33f2d7b1939d916dc67868e1145ec44e5c13a/wsgi_module-4.0b4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-62ltkhsl/wsgi-module/setup.py", line 42, in <module>
    INCLUDEDIR = get_apxs_config('INCLUDEDIR')
  File "/tmp/pip-install-62ltkhsl/wsgi-module/setup.py", line 36, in get_apxs_config
    stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'apxs'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-62ltkhsl/wsgi-module/