问题
Where can I get mod_wsgi.so
for windows 7 64 bit?
I have researched around and all point me to http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi
But there is no mod_wsgi.so
I found another link https://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so
But I am not sure whether it can be trusted or not. Besides it seems that it is for 32 bit.
Any ideas?
回答1:
If you had read the Google Code page and followed the link you would have found this, which includes multiple versions including a 64-bit version built with VC10 for httpd 2.4.
回答2:
I have recently did this set up.. And believe me it was really difficult specially on windows machine...These two reference link helped me to achieve that..
- https://beamtic.com/installing-mod-wsgi-apache-windows
- https://groups.google.com/forum/#!topic/modwsgi/RVD1hIxb2eI
In short:
- Install Python 3.x
- Download Microsoft Visual C++ Build Tool compatible to python version that you have been using.
- Run this command -> mod_wsgi-express module-config
Once you run this command it will give you some output. In my case it was:
LoadFile "f:/anaconda_3_32_bit/python37.dll" LoadModule wsgi_module "f:/anaconda_3_32_bit/lib/sitepackages/mod_wsgi/server/mod_wsgi.cp37-win32.pyd" WSGIPythonHome "f:/anaconda_3_32_bit"
Paste this configuration as it is in httpd.conf file, for apache web server.. Do not change anything at all
And you are done !! Hope it'll help someone :)
来源:https://stackoverflow.com/questions/31979401/mod-wsgi-so-for-windows-7-64-bit