0
My first attempt was creating a virtualenv using python3.6.2 (32 bits) and trying to install mod_wsgi on a vs2015_x86 command prompt, after set MOD_WSGI_APACHE_ROOTDIT and doing pip install mod_wsgi
iโd get a bunch of unresolved errors.
Then I thought maybe it was required a 64bits version of python so I installed python3.6.2 (64 bits), created a virtualenv and opened a vs2015 x64 command prompt and the installation was smooth, ie:
(py362_64) D:\sources\personal\python\framework\engine\tests\test>set MOD_WSGI_APACHE_ROOTDIR=C:/wamp/bin/apache/apache2.4.9
(py362_64) D:\sources\personal\python\framework\engine\tests\test>pip install mod_wsgi
Collecting mod_wsgi
Using cached mod_wsgi-4.5.18.tar.gz
Building wheels for collected packages: mod-wsgi
Running setup.py bdist_wheel for mod-wsgi ... done
Stored in directory: C:\Users\KneDa\AppData\Local\pip\Cache\wheels\75\86\b4\6e5bf5e1cea623c0578dc5d0424a32014f33cd3
bfde193d987
Successfully built mod-wsgi
Installing collected packages: mod-wsgi
Successfully installed mod-wsgi-4.5.18
One thing you need to be careful about is how you set the MOD_WSGI_APACHE_ROOTDIR, using /
instead \
and not enclosing on double quotes.
EDIT:
Also tried to install mod_wsgi on a python3.6.2 (64bits) on a normal cmd prompt (no visual studio compiler available) without setting MOD_WSGI_APACHE_ROOTDIR and the wheel has been installed succesfully, ie:
(foo) C:\whatever>pip install mod_wsgi
Collecting mod_wsgi
Installing collected packages: mod-wsgi
Successfully installed mod-wsgi-4.5.18
0
Xampp was 64bit hence i used this 64bit python and set the root directory to C:/xampp/apache then installed mod_wsgi.
https://www.python.org/ftp/python/3.7.5/python-3.7.5-amd64.exe
- [Django]-In Django templates, `Context` is a stack. What for?
- [Django]-How do I send XML POST data from an iOS app to a Django app?
- [Django]-Django 1.1 equivalent of the 'in' operator