It should be enough to do `brew install python tcl-tk`. What errors are you getting?
2mo|
Anonymous
||
It tells me that it's not finding the module.
a@as-MacBook-Pro ~ % brew install python tcl-tk ==> Downloading https://formulae.brew.sh/api/formula.jws.json ######################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/cask.jws.json ######################################################################### 100.0% Warning: python@3.13 3.13.1 is already installed and up-to-date. To reinstall 3.13.1, run: brew reinstall python@3.13 Warning: tcl-tk 9.0.1 is already installed and up-to-date. To reinstall 9.0.1, run: brew reinstall tcl-tk a@as-MacBook-Pro ~ % python3 -m tkinter
Traceback (most recent call last): File "", line 189, in runmoduleasmain File "", line 148, in getmoduledetails File "", line 112, in getmoduledetails File "/opt/homebrew/Cellar/python@3.13/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/tkinter/init.py", line 38, in import tkinter # If this fails your Python may not be configured for Tk ^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named 'tkinter'
Thank you for your reply. I actually tried something similar (as instructed by ChatGPT), but it didn't work for some reason. Now, the code wasn't exactly the same as you posted, but it was similar.