Leo,<div><br></div><div>You need to use:</div><div>setenv and not set in csh or tcsh</div><div><br></div><div>-Bill<br><br><div class="gmail_quote">On Tue, Sep 21, 2010 at 10:15 PM, Yiou Li <span dir="ltr"><<a href="mailto:liyiou@gmail.com">liyiou@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">William,<br>
<br>
I tried that, doesn't update the python path either.<br>
<br>
Leo<br>
<div><div></div><div class="h5"><br>
On Tue, Sep 21, 2010 at 10:13 PM, William Deegan <<a href="mailto:bdbaddog@gmail.com">bdbaddog@gmail.com</a>> wrote:<br>
> Leo,<br>
> Why not just<br>
> export PATH=PATH_TO_YOUR_PYTHON:$PATH ?<br>
> -Bill<br>
><br>
> On Tue, Sep 21, 2010 at 10:10 PM, Yiou Li <<a href="mailto:liyiou@gmail.com">liyiou@gmail.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> I installed a Python2.7 on my home directory in a Redhat Linux system.<br>
>> Then I tried to get rid of the system default path to python at<br>
>> '/usr/bin' --- I did this by set PATH="" in my .cshrc script. After I<br>
>> did a fresh system login, I find that my $PATH is set to empty.<br>
>> However, when I type "which<br>
>> python", I still get the old path "/usr/bin/python".<br>
>><br>
>> I also tried set the evironment variable "set<br>
>> PYTHONPATH=/my_python_directory" in .cshrc and refresh my login, but<br>
>> the python command still refers to "/usr/bin/python".<br>
>><br>
>> I just want to *overwrite* the system build-in python with my own<br>
>> installation, could anybody tell me how can I do that?<br>
>><br>
>> Many thanks!<br>
>> Leo<br>
>> _______________________________________________<br>
>> Baypiggies mailing list<br>
>> <a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
>> To change your subscription options or unsubscribe:<br>
>> <a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>