[Tutor] Installing both Python 2.7 and Python 3.4 on Windows 7 Pro 64-bit: Install Python 2.7 FIRST!

boB Stepp robertvstepp at gmail.com
Sat Oct 11 07:30:03 CEST 2014


On Sat, Oct 11, 2014 at 12:24 AM, boB Stepp <robertvstepp at gmail.com> wrote:
> On Fri, Oct 10, 2014 at 11:54 PM, Zachary Ware
> <zachary.ware+pytut at gmail.com> wrote:
>> On Fri, Oct 10, 2014 at 11:34 PM, boB Stepp <robertvstepp at gmail.com> wrote:
>>> I can live with 2.7.8 being the default Python, but if I wanted to
>>> make 3.4.2 the default, how would I go about doing it?
>>
>> Check the output of "ftype Python.File", it should be:
>>
>> C:\>ftype Python.File
>> Python.File="C:\Windows\py.exe" "%1" %*
>>
>
> This checked out sat.
>
>> If it's not, make it so :).  Then configure the Python Launcher
>> (py.exe) as described here:
>> https://docs.python.org/3/using/windows.html#customization
>>
>> (You'll probably want your py.ini to look like this:
>>
>> [defaults]
>> python=3
>>
> Cannot locate either of the mentioned py.ini files. I did a search for
> these on my PC and came up empty. I am going to try to create my own
> py.ini file and place it in C:\WINDOWS and see what happens.
>
This did the trick! Many thanks, Zach!


-- 
boB


More information about the Tutor mailing list