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!
I have Ubuntu 11.10, and I have always run python just fine. However I
Share
You can
export PYTHONPATH=/path/to/your/dir