Python error ImportError No module named tkinter

0 votes

I have installed the tkinter module. I have also imported the module.

import tkinter

I get the following error:

ImportError: No module named 'tkinter'
Aug 9, 2019 in Python by Tarun

2 answers to this question.

0 votes

Try installing it from the terminal with the following command:

sudo apt-get install python3-tk

Hope this helps!

If you need to know more about Python, join Python online course certification today.


answered Aug 9, 2019 by Trisha
+1 vote
sudo apt-get install python3-tk


>> import tkinter # all fine
Full Sourcecode At here
answered Nov 9, 2019 by Icetutor
• 160 points

Related Questions In Python

0 votes
1 answer

how to solve the error : "ImportError: No module named Tkinter" in python.

Hi@Umama, If you are using Linux system, then ...READ MORE

answered Apr 27, 2020 in Python by MD
• 95,300 points
0 votes
1 answer

Python error "ImportError: No module named pygame.locals"

You need to download and install the ...READ MORE

answered Jun 18, 2019 in Python by Greg
0 votes
2 answers

Python error " import requests ImportError: No module named requests"

Hello, Open Cmd or Powershell as Admin. type pip ...READ MORE

answered Nov 28, 2020 in Python by Rohan
• 200 points
0 votes
1 answer
0 votes
1 answer

Python error "ImportError: No module named SpeechRecognition"

Hi @Hannah, replace  import SpeechRecognition as sr with import speech_recognition ...READ MORE

answered Oct 3, 2019 in Python by Yamini
0 votes
2 answers

Python error “ImportError: No module named”

use the dir() function for particular import ...READ MORE

answered Jun 6, 2020 in Python by sahil
• 560 points
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,369 views
0 votes
0 answers
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,810 points