如何在 Windows 10 上安装 Tkinter? [英] How can i install Tkinter on Windows 10?
本文介绍了如何在 Windows 10 上安装 Tkinter?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 Windows 10 上安装 Tkinter?我已经尝试了一切.我使用 PyCharm.我把我的代码放到 repl.it 中,它按预期工作.但我喜欢 PyCharm,我想用它来编码.会不会不支持tkinter?
How can i install Tkinter on Windows 10? I have tried everything. I use PyCharm. I put my code to repl.it and it worked as it should. But i like PyCharm and i want to use it for my coding. Can it be that it does not support tkinter?
推荐答案
tkinter
是一个内置的 Python 模块.所以当你安装 python 时,tkinter
也安装了.这里有更多说明:
当你想安装 python 时,你有 2 个选项:
tkinter
is a built-in python module. so when you install python, tkinter
is installed too. here is more clarification:
when you want to install python you have 2 option:
- 立即安装:这是某种标准安装.大多数程序都有它.
- 自定义安装:使用此选项时,您可以选择要安装的模块.在这张图片中,您将看到包含
tkinter
模块的tcl/tk 和 IDLE
.确保它被检查!
- Install Now: this is some kind of standard installation. most of the programs have it.
- Customize Installation: when using this option you can choose which modules to install. in this picture, you will see
tcl/tk and IDLE
which containstkinter
module. make sure it is checked!
- 您可以在这里看到使用 tkinter 和 PyCharm 没有任何问题.
如果您仍然收到错误,我建议重新安装您的python.可能是最好的方法.
这篇关于如何在 Windows 10 上安装 Tkinter?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文