How to set mod_wsgi as python in python installation?

I cannot install mod_wsgi on windows when I try to run the following command:

pip install mod_wsgi 

It says -

 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. 

There is no apxs which is not in my apache installation by default. How to get these apxs? Is there any other way to install apache and then mod_wsgi in a python installation?

EDIT. I even tried installing mod_wsgi-httpd, but it does not work as it says -

 Failed to build APR. 
+6
source share
1 answer

This is due to the fact that you cannot use the mod_wsgi program installed on Windows. You need to use precompiled binaries as described in:

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

Courtesy: Graham Dumpleton ( https://github.com/GrahamDumpleton/mod_wsgi/issues/76 )

+3
source

All Articles