[Tutor] multiple versions of python on windows?

eryksun eryksun at gmail.com
Mon Apr 22 07:46:01 CEST 2013


On Sun, Apr 21, 2013 at 10:50 PM, Jim Mooney <cybervigilante at gmail.com> wrote:
> My plan for starting on Py 3 may need some adjustment. I doiwnloaded
> an irc client that needs Py 2.6 and I think Plone wants 2.7.
>
> Is it possible to install multiple versions of python on the same
> machine or will windows choke?

Installing multiple versions is fine. Just disable the option to
update file type associations. When you installed Python 3, .py files
were associated with py.exe. This allows you to use a shebang to run a
script with a specific interpreter. Or in the console you can run a
specific version like this:

    C:\>py -2.5 -c "import __hello__"  &:: -c runs a command
    Hello world...


More information about the Tutor mailing list