为什么找不到 tkinter 发行版? [英] Why is there no tkinter distribution found?
问题描述
我在安装 tkinter 时遇到问题.我有 2.7.11 版.我在 dos 上输入了 pip install tkinter
但它显示以下消息:
I am having a problem during the installation of tkinter. I have version 2.7.11. I entered the pip install tkinter
on dos but it shows the following message:
收集 tkinter
collecting tkinter
找不到满足 tkinter 要求的版本(来自版本:)没有找到 tkinter 的匹配分布
Could not find a version that satisfies the requirement tkinter (from versions:) No matching distribution found for tkinter
我已经使用相同的程序成功安装了烧瓶,但对于 tkinter,它显示了问题.我怎样才能摆脱这个问题?
I have successfully installed flask with the same procedure, but for tkinter it is showing problem. How can I get rid of this problem?
推荐答案
Tkinter 库在每次安装 Python 时都默认提供
The Tkinter library comes in default with every Python installation
试试这个:
import Tkinter as tk
这篇关于为什么找不到 tkinter 发行版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!