Switching between Python releases under Windows

Sridhar Ratnakumar sridhar.ratna at gmail.com
Tue Mar 22 13:06:00 EDT 2011


On Tue, Mar 8, 2011 at 8:03 AM, Tim Golden <mail at timgolden.me.uk> wrote:
> On 08/03/2011 15:58, Tim Golden wrote:
>>
>> On 08/03/2011 14:55, Edward Diener wrote:
>>>
>>> I have multiple versions of Python installed under Vista. Is there any
>>> easy way of switching between them so that invoking python and file
>>> associations for Python extensions files work automatically ?
>>
>> Well, the answer depends a bit on how au fait you are with fiddling
>> with env vars etc....
>
> But essentially involves:
>
> * Adding c:\pythonxy and c:\pythonxy\script to PATH

FWIW, ActivePython automatically does this. As it includes versioned
binaries as well, one can type (just like on Unix) `python2.7.exe` or
`python3.2.exe` in the Command Prompt.

> * assoc .py=python.file [probably already done]
>
> * python.file="C:\Pythonxy\python.exe" "%1" %*

I suppose I should soon implement Windows support in pythonselect,
https://github.com/Activestate/pythonselect

-srid



More information about the Python-list mailing list