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 in Python by Ashish
70 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 by Chandan

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 in Python by Greg
114 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 in Python by Layla
81 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,720 points
2,461 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
• 56,520 points
503 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 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 226 views
+4 votes
6 answers
0 votes
1 answer

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

Try installing it from the terminal with ...READ MORE

answered Aug 9 in Python by Trisha
81 views
0 votes
1 answer