Python error "ImportError: No module named _tkinter, please install the python-tk package"

0 votes

I am trying to install python on Linux and I am getting the following error:

ImportError: No module named _tkinter, please install the python-tk package.

How do I install tkinter on Linux?

Aug 9, 2019 in Python by Ashish
3,466 views

1 answer to this question.

0 votes

Use the following command to install tkinter on Linux:

apt-get install python-tk

It's a little complicated to install it on the local system using the package based method. Using apt-get is the easiest way.

answered Aug 9, 2019 by Chandan
its wrong bro, your method is not working

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 in Python by MD
• 41,020 points
1,411 views
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
1,693 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
5,758 views
+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 1,184 views
0 votes
0 answers
+4 votes
6 answers
0 votes
2 answers

Python error "ImportError: No module named 'tkinter'"

sudo apt-get install python3-tk Then, >> import tkinter # ...READ MORE

answered Nov 9, 2019 in Python by Icetutor
• 160 points
7,820 views
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
341 views