[Answered ]-Installing mod_wsgi with python 2.7 on Windows 64 bit

2👍

First don’t bother with compiling the source code go straight to mod_wsgi binary release. Follow the link and down load window binary file.
https://github.com/GrahamDumpleton/mod_wsgi/releases/tag/4.4.12

Second important thing is to determine if your python 2.7 is x86 or x64 (this is critical)

If python is x86 then you’ll need
– Use Apache24-win32-VC9\modules\mod_wsgi-py27-VC9.so (from github release file)
– Install Microsoft Visual C++ 2008 x86 runtime (which is vc9 runtime)

If python is x64 then you’ll need
– Use Apache24-win64-VC10\modules\mod_wsgi-py27-VC9.so
– Install Microsoft Visual C++ 2008 x64 runtime (which is vc9 runtime)

👤Du D.

0👍

See:

This is quite possibly caused by bug introduced into Python 2.7.11 installer for Windows.


UPDATE 1

This is only current issue I know of that can cause this on Windows. If that bug report doesn’t help, then can only suggest uninstalling and reinstalling your Python version.

You can also try working out the value of sys.prefix for the Python installation and then in the Apache configuration file add:

WSGIPythonHome "C:/Python27"

ensuring value is what sys.prefix uses. I am not sure that directive even works on Windows though and it may only work on UNIX as Windows works out Python installation location in different way than a UNIX system.

Leave a comment