Please help --- ModuleNotFoundError: No module named '_tkinter'
by DennyY from LinuxQuestions.org on (#5NM38)
I have been searching all over the net, trying to resolve this issue. But no luck yet.
I also got the same error message trying to import tkinter.
Code:Python 3.9.5 (default, Aug 21 2021, 13:48:16)
[GCC 8.4.1 20200928 (Red Hat 8.4.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/turtle.py", line 107, in <module>
import tkinter as TK
File "/usr/local/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'
Quote:
Thank you so much,
Denny
I also got the same error message trying to import tkinter.
Code:Python 3.9.5 (default, Aug 21 2021, 13:48:16)
[GCC 8.4.1 20200928 (Red Hat 8.4.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/turtle.py", line 107, in <module>
import tkinter as TK
File "/usr/local/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'
Quote:
import tkinter tkinter._test() |
Thank you so much,
Denny