python IDLE not working / starting with no effect

python IDLE heavily relies on TK. Somehow MacPorts does not install the required dependencies.

In my case running

sudo port install tk
sudo port install py311-tkinter

solved the issue.

Posted on Jul 31, 2023 3:55 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 31, 2023 6:04 AM

If you download and install the Python.org Python 3.11.4 installer it is a Universal2 binary, and is bundled with Tcl/Tk 8.6.* and idle works just fine on Ventura 13.5. The binaries are linked into /usr/local/bin, and you should update your Shell PATH accordingly.


Although I use homebrew package manager (sparingly), I never install Python or Tk/Tcl with it.


2 replies
Question marked as Top-ranking reply

Jul 31, 2023 6:04 AM in response to G45User

If you download and install the Python.org Python 3.11.4 installer it is a Universal2 binary, and is bundled with Tcl/Tk 8.6.* and idle works just fine on Ventura 13.5. The binaries are linked into /usr/local/bin, and you should update your Shell PATH accordingly.


Although I use homebrew package manager (sparingly), I never install Python or Tk/Tcl with it.


Oct 7, 2023 3:50 AM in response to G45User

I was preparing Python IDLE because my daughter is going to have Python class in high school. The installer from Python.org worked.


But I insisted installing it via MacPorts and finally got it to install it in macOS 14.0 Sonoma via:


sudo port install tk +quartz

sudo port install py311-tkinter


/Applications/MacPorts/Python 3.11/IDLE.app works and also just 'idle' via the Terminal works after commands like:


sudo port select --set python python311

sudo port select --set python3 python311


For some reason finding that 'tk +quartz' option needed much digging around.

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 IDLE not working / starting with no effect

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