I have both Python 2.7 and Python 3.3 installed on my machine (I'm on Windows 8).
I would like .py files to be opened with Python 3.3 by default. The only Python path in the PATH environment variable is the 3.3 one. Still, when opening .py files I see they're being interpreted by Python 2.7, even when I explicitly open them with the Python 3.3 exe ("Open with" and choosing the 3.3 exe). I've also tried changing the Python.exe version using "Set Associations" in Windows' control panel. I'm not sure it has changed anything. No matter what I do, the output of the following program is
import sys print(sys.version)
How do I force Windows 8 to open .py files with Python 3.3?