So konfigurieren Sie PythonPath in Apache2

So konfigurieren Sie PythonPath in Apache2

Die Standardversion von Python in meinem Ubuntu (12.04) ist 2.7. Für Python2.7-Projekte konfiguriere ich wie folgt:

 <Location "/callcentre">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE callcentre.settings
    PythonInterpreter callcentre
    PythonDebug On
    PythonPath "['/home/user/env/callcentreENV/lib/python2.7/site-packages','/home/user/env/callcentreENV/'] + sys.path"
  </Location> 

Und es funktioniert perfekt.

Jetzt möchte ich ein neues Projekt mit Python3.2 erstellen. Und ich weiß nicht, wie ich es in Appache konfigurieren soll, da der sys.path auf den Standard-Python2.7 verweist

verwandte Informationen