Error: tkinter for Python Installation

0 votes

So, I am trying to import Tkinter. However, I keep getting this error stating that Tkinter has not been installed.

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


Can anybody help out?

Jul 3 in Linux Administration by Shubham
• 13,290 points
31 views

1 answer to this question.

0 votes
It isn't easy to install Tkinter locally to use with system-provided Python. You may build it from sources, but this is usually not the best idea with a binary package-based distribution you're apparently running.

There's always a safer option to apt-get install python-tk on your machine. And it works for most  Debian-derived distributions such as Ubuntu.
answered Jul 3 by Upasana
• 8,530 points

Related Questions In Linux Administration

0 votes
1 answer

Argument receiving error for rm command

Bash actually expands the asterisk to every ...READ MORE

answered Jun 7 in Linux Administration by Shubham
• 13,290 points
25 views
0 votes
1 answer
0 votes
1 answer

Constraints for getting commands executed by cron

I think the problem could be those ...READ MORE

answered Nov 14, 2018 in Linux Administration by nirvana
• 3,060 points
38 views
–1 vote
1 answer

How to use help command for ls?

The help command is limited and it ...READ MORE

answered Jan 3 in Linux Administration by Omkar
• 67,480 points
287 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 230 views
+4 votes
6 answers
0 votes
1 answer

Which is a good hex editor for Linux?

You could try Bless. It is written ...READ MORE

answered Jun 4 in Linux Administration by Upasana
• 8,530 points
30 views
0 votes
1 answer

Cannot understand this "No X11 DISPLAY variable" error thrown at me

If you're on the main display, then export ...READ MORE

answered Jun 4 in Linux Administration by Upasana
• 8,530 points
104 views