MacPorts! They include a nifty little package called python_select that lets you switch default python versions on-the-fly and organizes everything for you perfectly. I have python 2.4, 2.5, 2.6, 2.7, 3.2, and the system default 2.6.1 all installed, and<br>
<br>python_select python27<br>python_select python32<br>python_select python26-apple<br><br>switches seamlessly between them. (I have so many versions to test script compatibility, not because I'm an avid collector). In any case, this seems to be an ideal solution.<br>
<br>All the best,<br>Jason<br><br><div class="gmail_quote">On Thu, Jan 6, 2011 at 5:25 PM, Bill Felton <span dir="ltr"><<a href="mailto:subscriptions@cagttraining.com">subscriptions@cagttraining.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div><div></div><div class="h5">On Jan 6, 2011, at 3:46 PM, Ned Deily wrote:<br>
<br><blockquote type="cite">In article <<a href="mailto:775A9D45-25B5-4A16-9FE5-6217FD67F3AF@cagttraining.com" target="_blank">775A9D45-25B5-4A16-9FE5-6217FD67F3AF@cagttraining.com</a>>,<br></blockquote><blockquote type="cite">
Bill Felton <<a href="mailto:subscriptions@cagttraining.com" target="_blank">subscriptions@cagttraining.com</a>> wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">I'm new to python, trying to learn it from a variety of resources, including <br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">references posted recently to this list.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I'm going through /<a href="http://www.openbookproject.net/thinkCSpy/" target="_blank">www.openbookproject.net/thinkCSpy/</a> and find it makes use <br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">of gasp, which apparently is not compatible with 3.1.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I've also seen various resources indicate that one can install both Python <br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">2.7 and Python 3.1 -- but when I did this, I get no end of problems in the <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
2.7 install. IDLE, in particular, fails rather spectacularly, even if I <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">launch it directly from the Python 2.7 directory in which it resides.<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">So, either I've been misled and should only try to have one or the other. OR <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
I'm missing some (probably simple) step that's mucking me up.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Help?<br></blockquote></blockquote><blockquote type="cite"><br></blockquote>
<blockquote type="cite">Yes, you can have multiple versions of Python installed on Mac OS X. In <br></blockquote><blockquote type="cite">fact, Apple ships multiple versions of Python with OS X (2.6 and 2.6 <br></blockquote>
<blockquote type="cite">with OS X 10.6, for example). Starting with Python 2.7, <a href="http://python.org/" target="_blank">python.org</a> <br></blockquote><blockquote type="cite">offers two variants of OS X installers, one is 32-bit-only and works on <br>
</blockquote><blockquote type="cite">all versions of OS X 10.3.9 through OS X 10.6, the other supports 64-bit <br></blockquote><blockquote type="cite">execution and only works on 10.6 (as of 2.7.1). Unfortunately, there <br>
</blockquote><blockquote type="cite">are some major interaction problems between Tkinter, Python's GUI <br></blockquote><blockquote type="cite">toolkit which is used by IDLE, and the Tcl/Tk 8.5 supplied by Apple in <br>
</blockquote><blockquote type="cite">OS X 10.6. I'm assuming you installed the 64-bit version. If so, until <br></blockquote><blockquote type="cite">the problem is resolved in the next maintenance release of Python 2.7, I <br>
</blockquote><blockquote type="cite">suggest you download and install the 32-bit-only version of Python 2.7.1 <br></blockquote><blockquote type="cite">which does not have those problems.<br></blockquote><blockquote type="cite">
<br></blockquote><br></div></div>Thank you, Ned! Installing what appeared to be the 'old OS' version seems to fix my difficulty.<br>IDLE now works fine without hanging, I can enter code, save, check syntax, and run from the 'new window'.<br>
And 3.1 still works as before.<br><br>regards,<br><font color="#888888">Bill<br></font></div><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jason M. Swails<br>Quantum Theory Project,<br>University of Florida<br>Ph.D. Graduate Student<br>352-392-4032<br>