Pip install mod_wsgi, How to install the MOD_WSGI_APACHE_ROOTDIR environment?

I am trying to install mod_wsgi on Windows 10.

The pip install mod_wsgi command gives me an error,

RuntimeError: No Apache installation can be found. Set the MOD_WSGI_APACHE_ROOTDIR environment to its location.

My Apache dir F:\Apache24\ .

My question is how to set up the MOD_WSGI_APACHE_ROOTDIR environment?

Thanks, Sambhav

+5
source share
1 answer

Accessing the docs at http://modwsgi.readthedocs.io/en/develop/release-notes/version-4.5.12.html should help you.

In short:

By default, the installation looks for Apache in C:\Apache24 , C:\Apache22 and C:\Apache2 , since your installation is none of this, you need to set the environment variable MOD_WSGI_APACHE_ROOTDIR to the path to which you installed it.

On your system, you will do this by running this on the command line:

set "MOD_WSGI_APACHE_ROOTDIR=F:\Apache24"

Which sets the variable, and then you can run the pip command (on the same command line):

pip install mod_wsgi


For more information on the set command, run the set /? Command on the command line.

+6
source

Source: https://habr.com/ru/post/1264408/


All Articles