在Python中安装tkinter [英] Install tkinter in Python

查看:97
本文介绍了在Python中安装tkinter的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8.1中有python 2.7.11。我安装ActiveTcl8.6.4.1.299124-win32-x86_64-threaded以使用TKinter模块。但是当我尝试导入TKinter或tkinter时,Python会为我抛出异常。请帮帮我。



这个例外是没有模块名称TKinter或没有模块名称TKinter



谢谢, s $



我尝试了什么:



i尝试调试此错误,但我不能成功。请帮助我

i have python 2.7.11 in windows 8.1. i install ActiveTcl8.6.4.1.299124-win32-x86_64-threaded for use of TKinter module. but when i try import TKinter or tkinter Python throw Exception for me. please help me.

this Exception is no module name TKinter or no module name TKinter

thank,s

What I have tried:

i try debug this error but i can't success.please help me

推荐答案

如果你使用Python 2,你应该导入Tkinter,如果你使用Python 3 import tkinter。 Python区分大小写。
If you use Python 2 you should import Tkinter, if you use Python 3 import tkinter. Python is case sensitive.


这篇关于在Python中安装tkinter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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