Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #66171

Re: Install python 2 and 3 in the "wrong" order

Date 2014-02-13 11:59 +0000
From Tim Golden <mail@timgolden.me.uk>
Subject Re: Install python 2 and 3 in the "wrong" order
References <52FCB228.5040301@shopzeus.com>
Newsgroups comp.lang.python
Message-ID <mailman.6835.1392292756.18130.python-list@python.org> (permalink)

Show all headers | View raw


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" %*

TJG

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Install python 2 and 3 in the "wrong" order Tim Golden <mail@timgolden.me.uk> - 2014-02-13 11:59 +0000

csiph-web