Install python 2 and 3 in the "wrong" order

Tim Golden mail at
Thu Feb 13 12:59:05 CET 2014

On 13/02/2014 11:53, Nagy László Zsolt wrote:
> I have Python 3.3 installed on my Windows 7 x64 box. Today I had to
> install Python 2.7 for an older app of mine.
> Here is my problem: although "#!/usr/bin/env python3" is given in the
> file and "py -3" program works fine, apparently the installation of
> python 2 simply has overwritten my settings (e.g. assignment *.py files
> to py.exe).
> Question: is there a way to fix this? Or do I have to reinstall Python 3
> from scratch? (It would be a pity, I have tons of third party modules
> installed for it...)

>From a cmd window:

ftype python.file="C:\Windows\py.exe" "%1" %*

ftype python.noconfile="C:\Windows\pyw.exe" "%1" %*


More information about the Python-list mailing list