ModulenotFoundError:No模块名为' tkinter'错误,尽管它一直有效
我不能再使用tkinter模块。在我切换到Python 3之前,脚本没有任何问题就开始了。现在出现此错误:
ModuleNotFoundError: No module named 'Tkinter'
您能帮我解决问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请小心,您必须将TKINTER用于Python 3和Python 2的TKINTER。
因此,如果您使用的是Python 3,则该模块已重命名为tkinter。
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.