how to solve the error ImportError No module named Tkinter in python

0 votes

Mar 17, 2020 in Python by umama
• 120 points
9,812 views
Hey @Umama,

Can you please elaborate what the following command in the python shell you have written? And check you have installed not the wrong python version and check you have all the modules installed.

1 answer to this question.

0 votes

Hi@Umama,

If you are using Linux system, then you can use the given command to avoid this error.

$ yum install python3-tk 

Hope this will work.

answered Apr 27, 2020 by MD
• 95,220 points

Related Questions In Python

0 votes
1 answer

Getting AttributeError: 'module' object (scipy) has no attribute 'misc' in Python. How to solve this?

>>> import scipy >>> scipy.misc Traceback (most recent call ...READ MORE

answered Dec 24, 2018 in Python by Nymeria
• 3,520 points
5,930 views
0 votes
1 answer
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
17,416 views
+1 vote
3 answers
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
3,740 views
0 votes
1 answer

How to resolve the typeerror in python os module?

TypeError - because the argument doesn't have ...READ MORE

answered Jul 31, 2019 in Python by Mohammad
• 3,230 points
741 views
0 votes
1 answer

How to resolve the error while importing cv2 from openCV in python?

I would recommend you go with anaconda ...READ MORE

answered Jul 31, 2019 in Python by Mohammad
• 3,230 points
690 views
0 votes
2 answers

Python error " import requests ImportError: No module named requests"

Hello, Open Cmd or Powershell as Admin. type pip ...READ MORE

answered Nov 28, 2020 in Python by Rohan
• 200 points
12,790 views
0 votes
1 answer
0 votes
1 answer

How to remove a file using the OS module in Python?

Hi@akhtar, In Python, you can use the os. remove() method to remove ...READ MORE

answered Oct 17, 2020 in Python by MD
• 95,220 points
158 views