I followed the instructions on the DreamHost wiki for installing a custom Python:
When I run python from the shell, I can see that I am running Python 2.6 as expected. I have also setup my PATH and PYTHONPATH variables to point to my $HOME/run directories where all my python libraries get installed via easy_install.
After setting up Python, I installed django and followed the instructions on Jeff Croft’s site:
The problem I am having now is that when executing a sample Django application, it appears that Apache is running Python2.4 and it is unable to find any of the libraries that are referenced in my PATH/PYTHONPATH.
I have run Python2.4 from the shell and have found that those libraries cannot be found, so there is certainly an issue with my Python/PATH setup, though I don’t know what the problem could be. When I run Python2.4, the following code:
for p in sys.path:
prints out all the paths expected (including my DJANGO src path), so it is very strange that Python2.4 cannot find these libraries.