Article 5NM38 Please help --- ModuleNotFoundError: No module named '_tkinter'

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:
import tkinter
tkinter._test()

Thank you so much,
Dennylatest?d=yIl2AUoC8zA latest?i=XvAqvT6yihY:GVqST8HoWY0:F7zBnMy latest?i=XvAqvT6yihY:GVqST8HoWY0:V_sGLiP latest?d=qj6IDK7rITs latest?i=XvAqvT6yihY:GVqST8HoWY0:gIN9vFwXvAqvT6yihY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments