Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python IDLE: Change Python Version

Tags:

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!

like image 558
Nathan Avatar asked Jan 23 '11 20:01

Nathan


People also ask

How do I switch between Python versions?

Yes, you should be able to switch between python versions. As a standard, it is recommended to use the python3 command or python3. 7 to select a specific version. The py.exe launcher will automatically select the most recent version of Python you've installed.

Does Python 3.9 have IDLE?

In the earlier section where we open “IDLE (Python 3.9 64-bit)” from the window search bar, by default the IDLE “Shell Window” opens up as the option “Open Shell Window” was selected by default in the settings.

How do I change Python IDLE?

If you need Python 2 just type idle in terminal. If you need Python3 type idle3 . I have both Python2 and Python3 installed and also idle and idle3. Save this answer.


1 Answers

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.

like image 113
Ned Deily Avatar answered Oct 04 '22 05:10

Ned Deily