ModuleNotFoundError: No module named 'thinter'
时间: 2023-10-17 11:33:05 浏览: 160
出现"ModuleNotFoundError: No module named 'Tkinter'"错误通常是由于在Python代码中导入了'Tkinter'模块,但实际上该模块的名称是'tkinter'。这是因为在Python 3中,Tkinter模块名称被改为小写。如果你使用的是Python 3.7或更高版本,并且在代码中使用了'Tkinter',则会出现这个错误。
要解决这个错误,你需要将代码中的'Tkinter'改为'tkinter'。例如,将"import Tkinter"改为"import tkinter"。这样就能正确导入Tkinter模块并解决该错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Python3.7出现“ModuleNotFoundError: No module named ‘Tkinter‘”错误的解决方法](https://blog.csdn.net/dengshijie0815/article/details/118791324)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [浅谈python3.6的tkinter运行问题](https://download.csdn.net/download/weixin_38694023/13997466)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文