Leo,<div><br></div><div>Why not just </div><div>export PATH=PATH_TO_YOUR_PYTHON:$PATH ?</div><div>-Bill<br><br><div class="gmail_quote">On Tue, Sep 21, 2010 at 10:10 PM, Yiou Li <span dir="ltr">&lt;<a href="mailto:liyiou@gmail.com">liyiou@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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>
&#39;/usr/bin&#39; --- I did this by set PATH=&quot;&quot; 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 &quot;which<br>
python&quot;, I still get the old path &quot;/usr/bin/python&quot;.<br>
<br>
I also tried set the evironment variable &quot;set<br>
PYTHONPATH=/my_python_directory&quot; in .cshrc and refresh my login, but<br>
the python command still refers to &quot;/usr/bin/python&quot;.<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>
</blockquote></div><br></div>