pip install mod_wsgi, How to Set MOD_WSGI_APACHE_ROOTDIR environment?

后端 未结 1 894
自闭症患者
自闭症患者 2021-02-04 12:57

I am trying to install mod_wsgi in Windows 10.

The command pip install mod_wsgi is giving me error,

RuntimeError: No Apache installation can b

1条回答
  •  粉色の甜心
    2021-02-04 13:40

    Referring to 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, as your installation is none of these you need to set the environment variable MOD_WSGI_APACHE_ROOTDIR to the path you have installed it to.

    On your system you would do this by running this in your command prompt:

    set "MOD_WSGI_APACHE_ROOTDIR=F:\Apache24"

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

    pip install mod_wsgi


    To read more about the set command run set /? in command prompt.

    0 讨论(0)
提交回复
热议问题