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

Yiou Li liyiou at gmail.com
Wed Sep 22 07:10:12 CEST 2010

Hi all,

I installed a Python2.7 on my home directory in a Redhat Linux system.
Then I tried to get rid of the system default path to python at
'/usr/bin' --- I did this by set PATH="" in my .cshrc script. After I
did a fresh system login, I find that my $PATH is set to empty.
However, when I type "which
python", I still get the old path "/usr/bin/python".

I also tried set the evironment variable "set
PYTHONPATH=/my_python_directory" in .cshrc and refresh my login, but
the python command still refers to "/usr/bin/python".

I just want to *overwrite* the system build-in python with my own
installation, could anybody tell me how can I do that?

Many thanks!

More information about the Baypiggies mailing list