Here is what my .bash_profile looks like, This is in my user directory<div><br></div><div><div>&quot;</div><div># Setting PATH for EPD_Py25 v4.3.0</div><div># The orginal version is saved in .bash_profile.pysave</div><div>
PATH=&quot;/Library/Frameworks/Python.framework/Versions/Current/bin:${PATH}&quot;</div><div>export PATH</div><div><br></div><div>PYTHONPATH=&quot;/Volumes/iDisk/match/python&quot;</div><div>export PYTHONPATH</div><div>&quot;</div>
<div>Note that the file &quot;/Library/Frameworks/Python.framework/Versions/Current&quot; is a symbolic link to the actual python. You could change the smbolic link or pint the Bash_profile directly to the python you want. I also found it difficult to understand the PYTHONPATH, As yu see it above Python will look in my idisk for modules to import. So if I have a file names mymod.py in /Volumes/iDisk/match/python and I &quot;import mymod&quot; it will find it.</div>
<div><br></div><div>Hope this helps, When I was learning abut python I found it difficult to find spisific instructins for this. Part of the problem Is that it seems that most instruction assume some understanding of terminal than I had. I know little more that what allows me to follow clear instructions.</div>
<div><br></div><div><br></div><div><br></div><div><br></div>Thanks<br>Vincent Davis<br>720-301-3003<br>
<br><br><div class="gmail_quote">On Thu, Jun 11, 2009 at 9:54 PM, Dave Angel <span dir="ltr">&lt;<a href="mailto:davea@ieee.org">davea@ieee.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
acfleck  wrote:<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m a Python nubie and having trouble with 3.0.1 on Mac (10.4.11). I did a default install of MacPython 3.0.1. The IDLE.app works fine, but from a Terminal window, the &#39;python&#39; command still gets me V2.5.3 (the original Apple installed version). A &#39;python3&#39; command is not recognized. I&#39;d like to know what I need to change to access V3.0.1 from a Terminal window.<br>

  <br>
</blockquote></div>
Use the &#39;which&#39; command to see what versions of python are on your PATH.  Then, since you have two different versions of Python you want available, create one or more scripts (on your path), to explicitly run the other installed versions.  Probably, those scripts can be one line each, though you also might conceivably want to set an environment variable or two (such as pythonpath)<br>

<br>
<br>
As far as I know, the install will not create a script called python3, or anything else like it.  That&#39;s up to you.  And it&#39;s generally not good form to hide the system-installed version, since many utilities and scripts might depend on that particular version.<div>
<div></div><div class="h5"><br>
<br>
_______________________________________________<br>
Tutor maillist  -  <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br></div>