import _tkinter # If this fails your Python may not be configured for Tk error in python 3.8 import _tkinter # If this fails your Python may not be configured for Tk error in python 3.8 tkinter tkinter

import _tkinter # If this fails your Python may not be configured for Tk error in python 3.8


CentOS 8 + Python 3.9.5following are what i have doneļ¼š

1st:

yum search tkinteryum install python39-tkinter.x86_64

2nd:

yum install tk-devel

3rd: cd python3.9.5 source folder

make install

it work in my case


I had the same issue. Switched from 3.8 to 3.7 and it worked. I'm using PyCharm CE, which makes it easy to switch between interpreters.


I faced the same issue on Mac . I was using python virtual env ..This command worked for me .

brew install python-tk.