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, 2019 in Linux Administration by Shubham
• 13,380 points
81 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, 2019 by Upasana
• 8,590 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, 2019 in Linux Administration by Shubham
• 13,380 points
62 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
90 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 745 views
0 votes
0 answers
+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, 2019 in Linux Administration by Upasana
• 8,590 points
68 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, 2019 in Linux Administration by Upasana
• 8,590 points
1,375 views