安装 Tkinter 的问题

Problems with installing Tkinter

当我尝试使用命令从命令行安装 tinter 时 > pip install tkinter < 我总是得到错误:

Could not find a version that satisfies the requirement tkinter (from versions: ) No matching distribution found for tkinter <

同样的结果>pip3 install tkinter< 我在 Mac OS10.13.3

上使用 Python 3.6

有什么解决办法吗?谢谢!

Tkinter 是 python 中的标准模块。尝试 python -m tkinter 检查 Tkinter 是否已经在你的 python :)
Tkinter常量tcl和tk,你可以找到适合你的包there