For Python3 tkinter can be simply installed by,

brew install python-tk

pip sometimes wont work successfully on my Mac, especially with the High Sierra OS version. Brew can be used to install all kinds of software packages in mac.

Answer from Coder94 on Stack Overflow
🌐
Reddit
reddit.com › r/learnpython › tkinter issue on macos :(
r/learnpython on Reddit: Tkinter issue on macOS :(
November 14, 2024 -

Hello everyone,

I'm trying to tackle school coursework requiring me to use the Tkinter library. Initially, anything I would attempt to display would result in a black screen. After consulting with ChatGPT, and reinstalling python and tcl-tk via homebrew I now receive this error :

 ~ % python3 -m tkinter

   import _tkinter # If this fails your Python may not be configured for Tk

^^^^^^^^^^^^^^^

ModuleNotFoundError: No module named '_tkinter'

These are the versions of python I'm using :

~ % which python3

/opt/homebrew/bin/python3

~ % python3 --version

Python 3.13.0

brew install tcl-tk

Warning: tcl-tk 9.0.0_1 is already installed and up-to-date.

MAC OS : 15.0.1 (24A348)

If anyone has any suggestions on how I could solve this error please let me know.

Discussions

Python application doesn't find tkinter but it's installed
I am trying to use tkinter for my Python Code. I installed it per pacman and trough pip. but there is an error that no moudel is named tkinter. I am using Visual Studio Code. More on forum.manjaro.org
🌐 forum.manjaro.org
1
1
March 28, 2023
tkinter not working on pyenv install on macOS
Tkinter is not working after pyenv install on macOS I'm using pyenv on my MacBook and need to run an old project using tkinter. pyenv usually works flawlessly, but here I'm hitting a snag. ... More on github.com
🌐 github.com
10
September 11, 2025
Bug: "ModuleNotFoundError: No module named '_tkinter" when importing PySimpleGUI
Type of Issue Bug While this seems to be similar to earlier bugs having to do with problems with Tk installations on Raspberry Pi, the fixes that previously worked are NOT currently sufficient to r... More on github.com
🌐 github.com
4
December 11, 2021
Tkinter does not work (MacOS)
same problem here, can only see button More on reddit.com
🌐 r/learnpython
5
2
December 12, 2022
🌐
GitHub
github.com › asdf-community › asdf-python › issues › 159
No module named _tkinter with Python 3.11.x (Mac M2) · Issue #159 · asdf-community/asdf-python
April 29, 2023 - -> https://www.python.org/ftp/... ModuleNotFoundError: No module named '_tkinter' WARNING: The Python tkinter extension was not compiled and GUI subsystem has been detected....
Author   fedeotaran
🌐
Python GUIs
pythonguis.com › installation › install tkinter on macos
How to Install Tkinter on macOS — Python GUI Setup Guide
3 weeks ago - If you run into problems, here are a few common issues and fixes: ModuleNotFoundError: No module named 'tkinter' — This usually means you're running a version of Python that doesn't have Tkinter bundled.
🌐
Itsourcecode
itsourcecode.com › home › modulenotfounderror: no module named _tkinter
Modulenotfounderror: no module named _tkinter [SOLVED]
April 4, 2023 - Let’s have a look at the cause of the error in a different platform of operating systems. The error “no module named tkinter” usually occurs on macOS when you are trying to run a Python script.
🌐
GeeksforGeeks
geeksforgeeks.org › python › how-to-fix-modulenotfounderror-no-module-named-tkinter
How to Fix: ModuleNotFoundError: No module named 'tkinter' - GeeksforGeeks
July 23, 2025 - If the module is not installed, the interpreter will raise the “ModuleNotFoundError.” ... Another reason for the error might be a typo or incorrect naming when trying to import the tkinter module.
Find elsewhere
🌐
GitHub
github.com › pyenv › pyenv › issues › 3326
tkinter not working on pyenv install on macOS · Issue #3326 · pyenv/pyenv
September 11, 2025 - $ >>> import tkinter Traceback (most recent call last): File "<python-input-0>", line 1, in <module> import tkinter File "/Users/user_id/.pyenv/versions/3.13.7/lib/python3.13/tkinter/__init__.py", line 38, in <module> import _tkinter # If this fails your Python may not be configured for Tk ^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named '_tkinter'
Author   exoriente
🌐
Bobby Hadz
bobbyhadz.com › blog › python-no-module-named-tkinter
ModuleNotFoundError: No module named 'tkinter' in Python | bobbyhadz
April 8, 2024 - Open your terminal and run the following command to install tkinter. ... Copied!# 👇️ === UBUNTU / DEBIAN === sudo apt-get install python3-tk # 🚨 Make sure to specify the correct Python version. # For example, my Python v is 3.10, so I would install as sudo apt-get install python3.10-tk # 👇️ === MacOS === brew install python-tk@3.10 # 🚨 Make sure to specify the correct Python version.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 360006480380-No-module-named-tkinter
No module named 'tkinter' – IDEs Support (IntelliJ Platform) | JetBrains
October 26, 2019 - Out of despair, I created a new environment using Anaconda3 (and python 3.7) and it worked, no tkinter problem anymore.
🌐
GitHub
github.com › PySimpleGUI › PySimpleGUI › issues › 5022
Bug: "ModuleNotFoundError: No module named '_tkinter" when importing PySimpleGUI · Issue #5022 · PySimpleGUI/PySimpleGUI
December 11, 2021 - /sonautics/sonascan_releases/sonascan_2021209r1/venv/bin/python /sonautics/sonascan_releases/sonascan_2021209r1/src/main.py Traceback (most recent call last): File "/sonautics/sonascan_releases/sonascan_2021209r1/src/main.py", line 118, in <module> import PySimpleGUI as sg File "/sonautics/sonascan_releases/sonascan_2021209r1/venv/lib/python3.10/site-packages/PySimpleGUI/__init__.py", line 3, in <module> from .PySimpleGUI import * File "/sonautics/sonascan_releases/sonascan_2021209r1/venv/lib/python3.10/site-packages/PySimpleGUI/PySimpleGUI.py", line 115, in <module> import tkinter as tk File "/usr/lib/python3.10/tkinter/__init__.py", line 37, in <module> import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' Process finished with exit code 1
Author   mcgregor94086
🌐
Ministry of Intrigue
andrlik.org › dispatches › til-tkinter-on-m2-mac
TIL - Getting asdf Python with tkinter working on a M2 Mac · Ministry of Intrigue
June 30, 2023 - python -m tkinter -c "tkinter._test()" Traceback (most recent call last): File "<frozen runpy>", line 189, in _run_module_as_main File "<frozen runpy>", line 148, in _get_module_details File "<frozen runpy>", line 112, in _get_module_details File "/Users/daniel/.asdf/installs/python/3.11.2/lib/python3.11/tkinter/__init__.py", line 38, in <module> import _tkinter # If this fails your Python may not be configured for Tk ^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named '_tkinter'
🌐
Python Forum
python-forum.io › thread-27981.html
No module named 'Tkinter'
I'm a beginner, and from my first steps, I have a strange problem. No matter what I have done (google it, set a virtual environment, reinstalling the language several times, installing deferent versions of the language) when I'm trying to give the co...
🌐
Reddit
reddit.com › r/learnpython › tkinter does not work (macos)
r/learnpython on Reddit: Tkinter does not work (MacOS)
December 12, 2022 -

I am new to Tkinter and gui coding and facing an error with it on my Mac in Visual Studio Code. When I am trying to run my code, the window does not show anything (for example the colour).

from tkinter import *

root = Tk()  #
root.title("Tk Example")
root.configure(background="yellow")
root.minsize(200, 200)  
root.maxsize(500, 500)
root.geometry("300x300+50+50")  

root.mainloop()

Thanks for any Help

🌐
GitHub
github.com › corpnewt › ProperTree › issues › 158
ModuleNotFoundError: No module named 'Tkinter' · Issue #158 · corpnewt/ProperTree
February 23, 2023 - ModuleNotFoundError: No module named 'Tkinter'#158 · Copy link · rehack · opened · on Feb 23, 2023 · Issue body actions · OS version: windows 10 python version: 3.11.2 ProperTree: last version · Running ProperTree.command and ProperTree.bat will cause errors: ·
Author   rehack
🌐
Bornforthis
bornforthis.cn › posts › 35.html
ModuleNotFoundError: No module named '_tkinter' on macOS | AI悦创-Python一对一辅导
April 10, 2025 - Traceback (most recent call last): File "/Users/arghadip/Library/Application Support/CodeRunner/Unsaved/Untitled.py", line 4, in <module> import tkinter as tk File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/__init__.py", line 37, in <module> import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' ... pip sometimes wont work successfully on my Mac, especially with the High Sierra OS version.
🌐
Rin Blog
rinblog.org › home › python › how to fix the “_tkinter module not found” error when creating a python gui tool
How to Fix the
January 12, 2026 - The reason for the _tkinter module not being found is that the installed Python does not include tkinter. On Mac, Python installed via Homebrew often does not come with tkinter, so you will need to install it separately.
🌐
Lanzani
blog.lanzani.nl › 2020 › install-tkinter-macos
Install tkinter on macOS · Technical inconsistencies blog
May 11, 2020 - ", line 1, in File "~/.pyenv/versions/3.7.4/lib/python3.7/turtle.py", line 107, in import tkinter as TK File "~/.pyenv/versions/3.7.4/lib/python3.7/tkinter/__init__.py", line 36, in import _tkinter # If this fails your Python may not be configured for Tk ModuleNotFoundError: No module named '_tkinter' If you use pyenv and brew there’s a simple way to fix it: brew install tcl-tk brew install pyenv # skip if you already have pyenv installed export PATH="/usr/local/opt/tcl-tk/bin:$PATH" export LDFLAGS="-L/usr/local/opt/tcl-tk/lib" export CPPFLAGS="-I/usr/local/opt/tcl-tk/include" export PKG_CON