Home > Mobile >  ModuleNotFoundError: No module named 'Tkinter' error although it has always worked
ModuleNotFoundError: No module named 'Tkinter' error although it has always worked

Time:05-12

I can no longer use the Tkinter module. Before I switched to Python 3, the script started without any problems. Now this error appears:

ModuleNotFoundError: No module named 'Tkinter'

Can you help me solve the problem?

CodePudding user response:

Be careful, you must use tkinter for Python 3 and Tkinter for Python 2.

So, if you're using Python 3, the module has been renamed to tkinter.

  • Related