close

[Solved] matplotlib error – no module named tkinter

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error matplotlib error – 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 matplotlib error – no module named tkinter Error Occurs?

Today I get the following error matplotlib error – no module named tkinter in python.

How To Solve matplotlib error – no module named tkinter Error ?

  1. How To Solve matplotlib error – no module named tkinter Error ?

    To Solve matplotlib error – no module named tkinter Error For Windows, I think the problem is you didn't install complete Python package. Since Tkinter should be shipped with Python out of box.

  2. matplotlib error – no module named tkinter

    To Solve matplotlib error – no module named tkinter Error For Windows, I think the problem is you didn't install complete Python package. Since Tkinter should be shipped with Python out of box.

Solution 1

For Linux

Debian based distros:

sudo apt-get install python3-tk

RPM based distros:

sudo yum install python3-tkinter

For windows:

For Windows, I think the problem is you didn’t install complete Python package. Since Tkinter should be shipped with Python out of box. Good python distributions for Windows can be found by the companies Anaconda or ActiveState.

Test the python module

python -c "import tkinter"

p.s. I suggest installing ipython, which provides powerful shell and necessary packages as well.

Solution 2

For Windows users, there’s no need to download the installer again. Just do the following:

  1. Go to start menu, type Apps & features,
  2. Search for “python” in the search box,
  3. Select the Python version (e.g. Python 3.8.3rc1(32-bit)) and click Modify,
  4. On the Modify Setup page click Modify,
  5. Tick td/tk and IDLE checkbox (which installs tkinter) and click next.

Wait for installation and you’re done.

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