Python show no module named Tkinter Error and its solution

Source: Internet
Author: User

Today is learning GUI (graphic user interface) When this error occurred, the book is not written, it is very mysterious and can be used, baffled the solution

After the csdn saw 2015 years of Bo, the original address http://blog.csdn.net/u011653701/article/details/45788495

The blogger said this, and the last two lines were the reason.

Tkinter(capitalized) refers to versions <3.0.

tkinter(all lowecase) refers to versions≥3.0

Caps T begins with the Tkinter package for python2, while the lowercase tkinter package is used for Python3, if not noticed this will be an error, saying that the package could not be found ...

The magic of the replacement upgrade.

Python show no module named Tkinter Error and its solution

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.