[omaha] Multiple Pythons on Windows

Jeff Hinrichs jeffh at delasco.com
Wed Sep 22 18:53:01 CEST 2010

I like the idea

"I'm using 2.5, 2.6, and 3.0 from the shell with one line batch scripts of
the form:

@c:\programs\pythonX.Y\python.exe %*

Name them pythonX.Y.bat and put them somewhere in your PATH. Copy the file
for the preferred minor version (i.e. the latest) to pythonX.bat. (E.g. copy
python2.6.bat python2.bat.) Then you can use python2 file.py from anywhere."


You could leave python2x as your default on windows, then create a
python3.bat file (see above) and tell it to use the other version.  Then 95%
of the time you wouldn't do anything different but while contemplating
koans, you could just
python3 contemplate_koans.py



On Wed, Sep 22, 2010 at 11:21 AM, Steve Young <wereapwhatwesow at gmail.com>wrote:

> I currently have Python 2.54 and Python 3.1 installed on a Windows Vista
> machine. 2.5 is my default version.  I was going to try Greg Malcom's
> Python
> Koans <http://bitbucket.org/gregmalcolm/python_koans/wiki/Home> that Jeff
> presented at the last meeting.  It works with Python 2.6 and 3.1.  I can't
> remember (or find searching) how to easily switch between the two versions
> of Python on my machine. I will still be using 2.5 95% of the time, but
> want
> to jump into 3.1 to do the Koans, and then jump back into 2.5 for
> everything
> else.  Is it as easy as opening my shell up in the 3.1 folder and
> specifying
> the python 3.1 executable?
> Thanks.
> --
> --Steve Young
> _______________________________________________
> Omaha Python Users Group mailing list
> Omaha at python.org
> http://mail.python.org/mailman/listinfo/omaha
> http://www.OmahaPython.org

More information about the Omaha mailing list