i have trouble with running pyramid site under apache+mod-wsgi. however , i can not tell apache which python interpretor is the correct one for that site it serve. i've several virtual conditions and i must take individuals python interpretors.

i added this code to my apache config:

WSGIApplicationGroup %{GLOBAL}
WSGIPassAuthorization On
WSGIDaemonProcess pyramid user=karantan group=karantan processes=1 threads=4 python-    path=/home/karantan/pyramid1.0/bin/python
WSGIScriptAlias /myapp /home/karantan/myproject/pyramid.wsgi

<Directory /home/karantan/myproject>
  WSGIProcessGroup pyramid
  Order allow,deny
  Allow from all

there's additionally a parameter known as WSGIPythonHome that informs apache which interpretor is the correct one however i can't place it within this config since it is global variable (or something like that like this...)

so how do you run pyramid site with virtual atmosphere under apache?

as mentioned above my primary problem (i believe) is the fact that apache always runs pyramid with default system python interpretor (/usr/bin/python). how do you tell apache it will need to take the main one in the virtualenv.???

Documentation explaining using virtual conditions with mod_wsgi are available at: