aditya
aditya

Reputation: 202

How to install mod_wsgi as a python into python installation?

I am unable install mod_wsgi on windows, when I am trying 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.

It is missing the apxs, which is not present in my default apache installation. How do I get this apxs ?? Is there any other way to install apache and then mod_wsgi into python installation?

EDIT - I even tried pip install mod_wsgi-httpd, but it does not work as it says-

Failed to build APR.

Upvotes: 6

Views: 6542

Answers (1)

Ponniah
Ponniah

Reputation: 31

It is because you cannot use the pip installable mod_wsgi on Windows. You need to use precompiled binaries as described at:

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

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

Upvotes: 3

Related Questions