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

William Deegan bdbaddog at gmail.com
Wed Sep 22 07:13:03 CEST 2010


Leo,

Why not just
export PATH=PATH_TO_YOUR_PYTHON:$PATH ?
-Bill

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!
> Leo
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> http://mail.python.org/mailman/listinfo/baypiggies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20100921/8142182c/attachment.html>


More information about the Baypiggies mailing list