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">&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;">William,<br>
<br>
I tried that, doesn&#39;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 &lt;<a href="mailto:bdbaddog@gmail.com">bdbaddog@gmail.com</a>&gt; wrote:<br>
&gt; Leo,<br>
&gt; Why not just<br>
&gt; export PATH=PATH_TO_YOUR_PYTHON:$PATH ?<br>
&gt; -Bill<br>
&gt;<br>
&gt; On Tue, Sep 21, 2010 at 10:10 PM, Yiou Li &lt;<a href="mailto:liyiou@gmail.com">liyiou@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; I installed a Python2.7 on my home directory in a Redhat Linux system.<br>
&gt;&gt; Then I tried to get rid of the system default path to python at<br>
&gt;&gt; &#39;/usr/bin&#39; --- I did this by set PATH=&quot;&quot; in my .cshrc script. After I<br>
&gt;&gt; did a fresh system login, I find that my $PATH is set to empty.<br>
&gt;&gt; However, when I type &quot;which<br>
&gt;&gt; python&quot;, I still get the old path &quot;/usr/bin/python&quot;.<br>
&gt;&gt;<br>
&gt;&gt; I also tried set the evironment variable &quot;set<br>
&gt;&gt; PYTHONPATH=/my_python_directory&quot; in .cshrc and refresh my login, but<br>
&gt;&gt; the python command still refers to &quot;/usr/bin/python&quot;.<br>
&gt;&gt;<br>
&gt;&gt; I just want to *overwrite* the system build-in python with my own<br>
&gt;&gt; installation, could anybody tell me how can I do that?<br>
&gt;&gt;<br>
&gt;&gt; Many thanks!<br>
&gt;&gt; Leo<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Baypiggies mailing list<br>
&gt;&gt; <a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
&gt;&gt; To change your subscription options or unsubscribe:<br>
&gt;&gt; <a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>