Python and IDLE both gone, removed? How do I get them back

MacBookPro - Catalina 10.15.7

I have several programs I have written using Python and the IDLE editor. When I tried to run one it would not launch. I got an error that IDLE failed to launch. Since these resources come as part of the OS how do I get them back?

John G

MacBook Pro 13″, macOS 10.15

Posted on Dec 18, 2023 2:00 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 18, 2023 2:37 PM

On Catalina 10.15.7, Apple still included Python 2.7.16 and the idle utility. Both should be in the /usr/bin directory location and these should not be user removable. Since idle uses Tk/Tcl for its GUI, it continues to use the Tk/Tcl 8.5.9 that Apple has shipped for over a decade and it is deprecated. When you launch idle, it will provide this warning on the command line and again in the idle application in blue text. Just press return inside idle to get to the idle prompt.


I prefer to launch idle in the background to free up the Terminal:


idle &


and when done with it, I type ^d within the app.


You really should consider migration of your Python2 code to Python 3.12.1 which is available to you as an proper install package from Python.org, ships with a current Tk/Tcl 8.6.12, and places its python3, idle3, etc binaries in /usr/local/bin.


Apple has removed the Python distribution from the operating system beginning in Monterey 12.3.

Similar questions

3 replies
Question marked as Top-ranking reply

Dec 18, 2023 2:37 PM in response to Geistownjohnny

On Catalina 10.15.7, Apple still included Python 2.7.16 and the idle utility. Both should be in the /usr/bin directory location and these should not be user removable. Since idle uses Tk/Tcl for its GUI, it continues to use the Tk/Tcl 8.5.9 that Apple has shipped for over a decade and it is deprecated. When you launch idle, it will provide this warning on the command line and again in the idle application in blue text. Just press return inside idle to get to the idle prompt.


I prefer to launch idle in the background to free up the Terminal:


idle &


and when done with it, I type ^d within the app.


You really should consider migration of your Python2 code to Python 3.12.1 which is available to you as an proper install package from Python.org, ships with a current Tk/Tcl 8.6.12, and places its python3, idle3, etc binaries in /usr/local/bin.


Apple has removed the Python distribution from the operating system beginning in Monterey 12.3.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Python and IDLE both gone, removed? How do I get them back

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.