Im on macOS Catalina running tcl 8.6.11, I installed python3 using
brew install python3
tclsh
% info patchlevel
8.6.11
Current version of python 3.9.4
python3 --version
Python 3.9.4
>>> import tkinter
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'
Downgrading to 3.8.2
python3 --version
Python 3.8.2
>>> import tkinter
>>>
Not sure what is causing this, any insight would be appreciated
Looks like tkinter is disabled in brew for python 3.9 but not for 3.8,
it's commented on their github.
Try the python-tk formula if you want to use python 3.9.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With