[omaha] Multiple Pythons on Windows

Jeff Hinrichs jeffh at delasco.com
Wed Sep 22 21:30:38 CEST 2010


nice.
-Jeff



On Wed, Sep 22, 2010 at 1:09 PM, Steve Young <wereapwhatwesow at gmail.com>wrote:

> It was so easy, I decided to install Python 2.7 and do my contemplating
> there!  So in a matter of minutes, I have gone from 1 to 3 versions of
> Python, and can easily switch between them all!!  Awesome.
>
> thanks again.
>
> On Wed, Sep 22, 2010 at 12:54 PM, Steve Young <wereapwhatwesow at gmail.com
> >wrote:
>
> > Beautiful!  Well, I did have to reinstall 3.1 as I forgot I had
> uninstalled
> > it some time ago.  But even after installing 3.1, 2.5 was still the
> > default.  I made the batch file and it works perfectly.   I had thought I
> > would have to tinker around with virtualenv, but then I realized that is
> > mainly for creating different env's within a major release.  Have to wait
> > and try it later!  This is a great solution.
> >
> > Thanks Jeff.
> >
> >
> > On Wed, Sep 22, 2010 at 11:53 AM, Jeff Hinrichs <jeffh at delasco.com>
> wrote:
> >
> >> 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."
> >>
> >> from:
> >>
> >>
> http://stackoverflow.com/questions/341184/can-i-install-python-3-x-and-2-x-on-the-same-computer
> >>
> >> 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
> >>
> >> .02
> >> Jeff
> >>
> >> -Jeff
> >>
> >>
> >>
> >> 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
> >> >
> >> _______________________________________________
> >> Omaha Python Users Group mailing list
> >> Omaha at python.org
> >> http://mail.python.org/mailman/listinfo/omaha
> >> http://www.OmahaPython.org
> >>
> >
> >
> >
> > --
> > --Steve Young
> >
>
>
>
> --
> --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