close

[Solved] Import: No module named ‘Tkinter’

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Import: No module named ‘Tkinter’ in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Import: No module named ‘Tkinter’ Error Occurs?

Today I get the following error Import: No module named ‘Tkinter’ in python.

How To Solve Import: No module named ‘Tkinter’ Error ?

  1. How To Solve Import: No module named 'Tkinter' Error ?

    To Solve Import: No module named 'Tkinter' Error

    Note Tkinter has been renamed to tkinter in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

  2. Import: No module named 'Tkinter'

    To Solve Import: No module named 'Tkinter' Error

    Note Tkinter has been renamed to tkinter in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

Solution 1

As you are using Python 3, the module has been renamed to tkinter, as stated in the documentation:

Note Tkinter has been renamed to tkinter in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

Solution 2

For windows 10, it is important to check in the Python install the optional feature “tcl/tk and IDLE”. Otherwise you get a ModuleNotFoundError: No module named ‘tkinter’. In my case, it was not possible to install tkinter after the Python install with something like “pip install tkinter”

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read