0

I run python version 3.3.0 and when to try to import Tkinter in command window, I get this type of error:

>>> import Tkinter
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    import Tkinter
ImportError: No module named 'Tkinter'
>>>

Please help me out how to solve this problem.

awesoon
  • 32,469
  • 11
  • 74
  • 99
Abrar Hussain
  • 1
  • 1
  • 1
  • 1

2 Answers2

7

You should use tkinter with first letter "t" must be lower case-sensitive for Python 3.

Sky Flyinz
  • 73
  • 3
4

The name changed in Python 3. Try tkinter with a lowercase 't'.

Many modules were renamed, modified, or forked when Python moved from 2.x to 3.x. I like to use

>>> help('modules')

to see a list of current module names. This works in all versions.

Jack Stout
  • 1,265
  • 3
  • 12
  • 25