【问题标题】:How to install mod_wsgi as a python into python installation?如何将 mod_wsgi 作为 python 安装到 python 安装中?
【发布时间】:2015-12-31 22:12:32
【问题描述】:

当我尝试运行以下命令时,我无法在 Windows 上安装 mod_wsgi:

pip install mod_wsgi

上面写着-

Collecting mod-wsgi
Using cached mod_wsgi-4.4.14.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "c:\users\aditya\appdata\local\temp\pip-build-ffaywu\mod-wsgi\setup.p
     y", line 139, in <module>
    'missing Apache httpd server packages.' % APXS)
  RuntimeError: The 'apxs' command appears not to be installed or is not 
  executable. Please check the list of prerequisites in the documentation 
  for this package and install any missing Apache httpd server packages.

缺少 apxs,这在我的默认 apache 安装中不存在。 我如何获得这个 apxs ? 有没有其他方法可以安装apache,然后mod_wsgi进入python安装?

编辑——我什至尝试过 pip install mod_wsgi-httpd,但它并没有像它说的那样工作——

Failed to build APR.

【问题讨论】:

    标签: python apache2 mod-wsgi wsgi apxs2


    【解决方案1】:

    这是因为您无法在 Windows 上使用 pip 可安装的 mod_wsgi。您需要使用如下所述的预编译二进制文件:

    https://github.com/GrahamDumpleton/mod_wsgi/blob/develop/win32/README.rst

    礼貌:格雷厄姆·邓普顿 (https://github.com/GrahamDumpleton/mod_wsgi/issues/76)

    【讨论】:

      猜你喜欢
      • 2019-01-19
      • 1970-01-01
      • 1970-01-01
      • 2014-12-03
      • 2015-10-23
      • 2011-09-20
      • 2018-08-10
      • 2015-05-13
      • 2020-11-25
      相关资源
      最近更新 更多