yesil
yesil

Reputation: 78

no module named 'Tkinter' on windows

i'm using windows pc. It appears Tkinter doesn't come with the installation.

python --version
Python 3.7.6

So i've tried to install it with pip.

pip install tk
Collecting tk
  Using cached tk-0.1.0-py3-none-any.whl (3.9 kB)
Installing collected packages: tk
Successfully installed tk-0.1.0

When i try to import;

import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'Tkinter'

or

import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tkinter'

Upvotes: 0

Views: 4303

Answers (1)

Tobi208
Tobi208

Reputation: 1376

You need to check the option tcl/tk and IDLE when installing Python on Windows. Retroactive installation through pip doesn't work.

Upvotes: 1

Related Questions