Python can't find site.py. It's either missing when you installed python, it was deleted, or it's located in another directory. Run >>> find / -iname 'site.py' , sudo if needed, and add the location of site.py in your python search path.
The python online docs has a good documentation on python search path: http://docs.python.org/install/index.html#search-path On Wed, Jun 6, 2012 at 6:25 AM, Tom King <king.to...@yahoo.com> wrote: > hi im new in python and i have a problem about > when i type python in my command line console i get an error message > > > 'import site' failed; use -v for traceback > Python 2.4.3 (#1, May 5 2011, 18:44:23) > [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> > > what is going on and how i can fix it > thanks in andvance > > > -- > http://mail.python.org/mailman/listinfo/python-list > >
-- http://mail.python.org/mailman/listinfo/python-list