简体   繁体   English

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

[英]how to install tkinter using pip in windows 10

When i try to install tkinter with the command pip install tkinter in windows 10 I get this error:当我尝试安装tkinter使用命令pip install tkinter在Windows 10我得到这个错误:

Could not find a version that satisfies the requirement tkinter(from versions: ) No matching distributions found for tkinter找不到满足 tkinter 要求的版本(来自版本:)没有找到与 tkinter 匹配的发行版

Tkinter comes bundled with Python. Tkinter与 Python 捆绑在一起。 You can use python -m Tkinter to check the windows demonstration of Tk interface, which lets you know if Tkinter is installed properly on your system or not.您可以使用python -m Tkinter检查Tk界面的 windows 演示,它可以让您知道Tkinter是否正确安装在您的系统上。

In case Tkinter is not present on your system, I would recommend reinstalling Python distribution(in case you are using a stale version).如果您的系统上没有Tkinter ,我建议您重新安装 Python 发行版(如果您使用的是过时的版本)。

In case your version is also updated and still the problem exists, please install using the binaries.如果您的版本也更新了但问题仍然存在,请使用二进制文件进行安装。 The process is mentioned on the official site here .此处官方网站上提到了该过程。

使用pip install tkintertable它还导入了 Tkinter

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM