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

0 votes

Mar 17 in Python by umama
• 120 points
3,609 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 by MD
• 65,240 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
4,275 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
10,432 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
2,185 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,210 points
364 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,210 points
448 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, 2019 in Python by Layla
8,073 views
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 3 days ago in Python by MD
• 65,240 points
14 views