python - 如何在 Windows 10 中使用 pip 安装 tkinter

标签 python tkinter

当我尝试在 Windows 10 中使用命令 pip install tkinter 安装 tkinter 时,出现此错误:

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

最佳答案

Tkinter 与 Python 捆绑在一起。您可以使用 python -m Tkinter 查看 Tk 界面的 Windows 演示,它可以让您知道您的系统上是否正确安装了 Tkinter 或不是。

如果您的系统上不存在 Tkinter,我建议您重新安装 Python 发行版(如果您使用的是过时版本)。

如果您的版本也已更新但问题仍然存在,请使用二进制文件进行安装。 official site here 上提到了该过程。 .

关于python - 如何在 Windows 10 中使用 pip 安装 tkinter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53910070/

相关文章:

python - 使用多处理/线程通过 Tkinter 读取串行端口和实时图形数据

python - 在 Python2.7 上安装 tkMessageBox

python - 在 Python 中搜索、插入和替换文本的前一行

python - 从标签中获取数据(BeautifulSoup)

python - tkinter columconfigure 和 rowconfigure

python-3.x - 如何选择所有 TreeView 并使用 ctrl-c 复制

python - 如何用 wxPython、PyQt、PySide 或 Tkinter 解释 Python?

python - 在class1内调用class2时出现AttributeError,class1没有__init__属性

python - 在不重叠的字符串中查找 AB 和 BA

python - 获取 django oscar 中篮子的送货地址