I have Ubuntu 11.10, and I have always run python just fine. However I have run into a problem. I was trying to get jpeg working with PIL and I did something and now python won't run from the command line. Earlier it said change PYTHONPATH AND PYTHONHOME and also gave me and ImportError: No module named site. So I set PYTHONPATH AND PYTHONHOME to /usr/local/lib/python2.7 and now I only get the 'No module named site'. So still python not working from command line. I've found out a little bit about site from http://www.doughellmann.com/PyMOTW/site/, but I cannot figure out how to remedy this problem. Thanks!
You can export PYTHONPATH=/path/to/your/dir
sudo apt-get install --reinstall python
to fix the system Python. – Burhan Khalid Apr 2 '12 at 4:43did something
part, or the commands that you typed so we can help. Like this everyone is guessing. – Burhan Khalid Apr 2 '12 at 4:49