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