I know this question is pretty old, but I wrestled with this for about eight hours just now. If you have a system with SELinux enabled and you've put your virtualenv in particular places, mod_wsgi won't be able to add your specified python-path
to the site-packages. It also won't raise any errors; as it turns out the mechanism it uses to add the specified python-path
to the site packages is with the Python site
module, specifically site.adduserdir()
. This method doesn't raise any errors if the directory is missing or can't be accessed, so mod_wsgi also doesn't raise any errors.
Anyway, try turning off SELinux with
sudo setenforce 0
or by making sure that the process you're running Apache as has the appropriate ACLs with SELinux to access the directory the virtualenv is in.