问题
How can I install mod_wsgi from lfd website as it has wheel extension.Whenever I am searching how to install mod_wsgi on wamp the resources tell me to install binary from this site and then keep the mod_wsgi.so file in my wamp directory.
回答1:
On the lfd page is a link to:
- https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst
You may want to read that.
The official mod_wsgi download area has binaries as .so files as explained in that link.
You can still use the whl versions when you work out how to install them, but the .so option does still exist.
回答2:
The WHL files from LFD (http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi) DO contain the pre-built WSGI module, but for obscure reasons it is called mod_wsgi.pyd
. You can find it in c:/python27/lib/site-packages/mod_wsgi/server/
(or whatever your Python installation or virtual environment path is).
Just rename it to mod_wsgi.so
and copy it to the modules
directory if Apache.
To get some initial help with setting up the Apache configuration, you may run
c:/python27/Scripts\mod_wsgi-express.exe module-config
More information about mod_wsgi
on Windows and compatibility can be found here: https://github.com/GrahamDumpleton/mod_wsgi/blob/master/win32/README.rst
来源:https://stackoverflow.com/questions/28364368/how-to-install-mod-wsgi-from-lfd-in-2015