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,576 views

2 answers to this question.

0 votes

Try installing it from the terminal with the following command:

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

Then,

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

Related Questions In Python

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
702 views
0 votes
1 answer

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

Hi @Vasgi, for the code you're trying ...READ MORE

answered Aug 5, 2019 in Python by Layla
2,047 views
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
174 views
+3 votes
1 answer

Tensorflow 1.5 ImportError: No module named tensorflow.python.client

I think it's a bug in Tensorflow ...READ MORE

answered Sep 25, 2018 in Python by charlie_brown
• 7,750 points
4,101 views
0 votes
1 answer

tensorflow 1.5 ImportError: No module named tensorflow.python.client

Some of the modules have changed in ...READ MORE

answered Oct 5, 2018 in Python by Priyaj
• 57,530 points
899 views
0 votes
1 answer
+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 655 views
0 votes
0 answers
+4 votes
6 answers