Python IDLE: Change Python Version

51,788

Solution 1

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.

Solution 2

Usually each Python version installs its own version of IDLE. I don't know how this works on Mac, but for Windows it works like this:

python2.7 C:\Program Files\Python27\Lib\idlelib\idle.pyw

starts the Python 2 IDLE and

python3.2 C:\Program Files\Python32\Lib\idlelib\idle.pyw

starts the Python 3 IDLE.

Solution 3

In the Windows environment, if you want to use particular install of IDLE, I find the easiest way is to right click on the .py file and choose "open with". Then navigate to the IDLE.bat file in the Python version install location you want to use. I find picking just the ilde.py doesn't work but the .bat file does.

E. g.

D:\Python27\ArcGISx6410.4\Lib\idlelib\idle.bat

or

D:\Python27Desktop\ArcGIS10.4\Lib\idlelib\idle.bat

Solution 4

If there are 2 or more Python versions installed on you computer but you can only open one Python IDLE (suppose IDLE using Python 2.7) and if you dont have IDLE for Python 3.5 installed on your computer (check the folder /usr/bin for idle or idle-python2.7 And if idle-python3.5 is not there then its not currently installed). Then you just have to install idle-python3.5 by executing following command through CLI.

sudo apt install idle-python3.5

Or you can just install it by Software Manager in Linux. Search for IDLE and select your preferred IDLE to install.

Share:
51,788
Nathan
Author by

Nathan

Updated on July 27, 2022

Comments

  • Nathan
    Nathan almost 2 years

    I have Python 2.x and 3.x on my machine (Mac OS X 10.6). For some things I want to use ver 2, but for others I want ver 3. I like the IDLE software for editing/running, but it always uses version 3.

    Is there any way to change the version of the interpreter that IDLE uses?

    Thanks!