Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

I am trying to import Tkinter. However, I get an error stating that Tkinter has not been installed:

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

I could probably install it using synaptic manager (can I?), however, I would have to install it on every machine I program on. Would it be possible to add the Tkinter library into my workspace and reference it from there?

1 Answer

0 votes
by (106k points)

To install Tkinter for Python you can use the below-mentioned command:-

 apt-get install python-tk  

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 15, 2019 in AWS by yuvraj (19.1k points)
0 votes
5 answers

Browse Categories

...