问题
In debian recently change de default version of python from 2.5 to 2.6 but i need 2.5, how i can configure apache and/or wsgi script to say it use pythons2.5 and not python default?
回答1:
You must install mod_wsgi package binary compiled against Python 2.5, or compile mod_wsgi from source code yourself against the Python 2.5 version. See notes about --with-python option in:
http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Configuring_The_Source_Code
回答2:
You'll need to recompile mod_wsgi against the appropriate version of Python.
来源:https://stackoverflow.com/questions/3186526/how-i-say-the-interpreter-version-for-wsgi-apache