1

First of all, I am using Windows 10 and python 3.7.4.
When I try to import tkinter, I get the error: ModuleNotFoundError: No module named 'tkinter'.
How can I install tkinter? I thought it should come with the default python installation. Can I use pip somehow?

I get that many people already made posts about this error, but they all seem to either work on Linux and solve it with sudo apt-get install python3-tk or accidentally write Tkinter, which are both not my case.

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Omer Lubin
  • 551
  • 2
  • 8
  • 24
  • 1
    Tkinter already comes with Python. Have you checked [this](https://stackoverflow.com/questions/20044559/how-to-pip-or-easy-install-tkinter-on-windows)? If it doesn't, uninstall and reinstall Python and see for Tkinter checkbox: I think there was one. – Emiliano Ruiz Dec 19 '19 at 17:15
  • 1
    How did you install your Python? – norok2 Dec 19 '19 at 17:33
  • No, you cannot use Pip. Instead, reinstall Python or "repair" the installation, and this time, choose to include Tcl/Tk and IDLE. See the linked duplicate for details. – Karl Knechtel Apr 29 '23 at 01:58

0 Answers0