[Baypiggies] New python installation can't overwrite the system python.

Keith Dart keith at dartworks.biz
Wed Sep 22 07:21:28 CEST 2010


=== On Tue, 09/21, Yiou Li wrote: ===
> I tried that, doesn't update the python path either.

===

The PYTHONPATH is the variable Python uses to find extra modules. Your
shell uses the PATH to find Python. Your shell also caches the path so
you may be experiencing that. After changing PATH, do a "hash -r"
command to clear the command cache and try again. If your new python is
on the PATH first it will then use that one.

Verify also by doing this:

Python> import sys
Python> sys.prefix
'/usr'

Your own python should have /home/... as prefix.

Python bases the module search path on that also.


-- Keith Dart

-- 
-- ------------------------------
Keith Dart
=================================



More information about the Baypiggies mailing list