1

File "/usr/lib/python3.10/turtle.py", line 107, in import tkinter as TK ModuleNotFoundError: No module named 'tkinter'

Error occurring in linux python modules

akhilesh
  • 11
  • 3
  • Possible duplicate of https://stackoverflow.com/questions/6084416/tkinter-module-not-found-on-ubuntu? – Yuval.R Sep 17 '22 at 07:52
  • 2
    Does this answer your question? [Tkinter module not found on Ubuntu](https://stackoverflow.com/questions/6084416/tkinter-module-not-found-on-ubuntu) – Muhammad Sulaiman Sep 17 '22 at 13:38
  • Just asked a couple of days ago: [Turtle module: import tkinter as TK ModuleNotFoundError: No module named 'tkinter'](https://stackoverflow.com/questions/73724978/turtle-module-import-tkinter-as-tk-modulenotfounderror-no-module-named-tkinte) – ggorlen Sep 17 '22 at 17:58

2 Answers2

0

In Arch, Tk is available in the Arch repository. The following fixed it for me on Manjaro. Just type on the terminal:

pacman -S tk

If you are using one of Debian flavours, Ubuntu, Mint etc...

apt-get install tk
0

actually I found that this worked for UBUNTU for me (same for debian other flavours)

sudo apt-get install python3.10-tk

since I have python 3.10 you would need to use your version.

thanks to https://stackoverflow.com/a/18143036/1422486

xchiltonx
  • 1,946
  • 3
  • 20
  • 18