简体   繁体   English

安装Tkinter

[英]Installation of Tkinter

在哪里可以下载此程序?

Any recent version of Python should come with Tkinter support. Tkinter支持任何最新版本的Python。 To my knowledge, you shouldn't need to install anything else. 据我所知,您不需要安装其他任何东西。

As a standard python library, Tkinter is part of any standard Python installation. 作为标准的python库,Tkinter是任何标准Python安装的一部分。 You can can get a standard python installation at http://www.python.org/download/ . 您可以从http://www.python.org/download/获得标准的python安装。

If you worked on linux , and you don't have the root privilege . 如果您在Linux上工作,则没有root特权。 You need to install python locally. 您需要在本地安装python。 You can't use like the following commands: 您不能像以下命令那样使用:

apt-get install python-tk
sudo apt-get install python-tk

You can get the tcl/tk right here http://www.tcl.tk/software/tcltk/download.html . 您可以在http://www.tcl.tk/software/tcltk/download.html上获取tcl / tk。 And then refer to this Install tkinter and python locally 然后参考此在本地安装tkinter和python

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

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