当我试图运行以下命令时,无法在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,它在我的默认安装中不存在。我怎么得到这个apxs ??还有其他方法将apache然后mod_wsgi安装到python安装中吗?
编辑-我甚至尝试过pip安装mod_wsgi,但是它不像它说的那样工作-
Failed to build APR.发布于 2015-11-09 08:20:29
这是因为您不能在Windows上使用pip可安装的mod_wsgi。您需要使用预编译的二进制文件,如以下所述:
wsgi/blob/develop/win32/README.rst
提供:格雷厄姆·邓普顿(wsgi/issues/76)
https://stackoverflow.com/questions/32928538
复制相似问题