Reputation: 3
I am using Windows 10, and I have python 2.7 and 3.6 installed. I want to open a .py file in IDLE 3.6, but when I try to open it, it opens in 2.7. How can I change the default?
Upvotes: 0
Views: 3472
Reputation: 977
To make the python-2x or python-3x as default python IDLE, you need to change the environment variable, if you define the path for n versions of python, you will be able to use that particular version by typing that version in cmd.
See the superuser answer here for step by step instruction
Upvotes: 1
Reputation:
There are different versions of IDLE installed for each Python version. Depending on how you installed Python on Mac OS X, you may find different folders in /Applications. Look for a Python 3.n (n = 1 or 2) folder with an IDLE in it. Or, from a terminal command line, you may find an idle2.6 and an idle3 or idle3.1 or idle3.2.
https://stackoverflow.com/a/4776403/3900156
Upvotes: 0