[Baypiggies] New python installation can't overwrite the system python.
bdbaddog at gmail.com
Wed Sep 22 07:13:03 CEST 2010
Why not just
export PATH=PATH_TO_YOUR_PYTHON:$PATH ?
On Tue, Sep 21, 2010 at 10:10 PM, Yiou Li <liyiou at gmail.com> wrote:
> 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!
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies