为什么没有找到tkinter分布? [英] Why is there no tkinter distribution found?

查看:133
本文介绍了为什么没有找到tkinter分布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装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?

推荐答案

在每次安装Python时,Tkinter库都是默认的

The Tkinter library comes in default with every Python installation

尝试一下:

import Tkinter as tk

这篇关于为什么没有找到tkinter分布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆