When I try to import tkinter I get the error message: Python 3.12.3 (main, May 25 2024, 22:44:21) [GCC 13.2.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import tkinter
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/lib/python3.12/tkinter/init.py”, line 38, in
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named ‘_tkinter’
tkinter not working
When I try to import module tkinter the error message appears.
All the hints from the web didn’t work out.
Puso Schmitt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.