欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

centos 安装 tkinter(不只用来做界面,在pylot中也使用)

程序员文章站 2022-05-18 11:07:03
Python2 Python36 # 区别:Python3.6与2 python36-tkinter和 tkinter # 其他版本可通过:yum search thinter ......

python2

[root@binger ~]# yum -y install tkinter  tcl-devel tk-devel
[root@binger ~]# rpm -qa | grep ^tk
tkinter-2.7.5-77.el7_6.x86_64
tk-devel-8.5.13-6.el7.x86_64
tk-8.5.13-6.el7.x86_64
[root@binger ~]# rpm -qa | grep ^tcl
tcl-8.5.13-8.el7.x86_64
tcl-devel-8.5.13-8.el7.x86_64
[root@binger ~]# find /usr -name *tkinter.so
[root@binger ~]#

python36

[root@binger ~]# yum -y install python36-tkinter  tcl-devel tk-devel
[root@binger ~]# rpm -qa | grep ^tk
tkinter-2.7.5-77.el7_6.x86_64
tk-devel-8.5.13-6.el7.x86_64
tk-8.5.13-6.el7.x86_64
[root@binger ~]# rpm -qa | grep ^tcl
tcl-8.5.13-8.el7.x86_64
tcl-devel-8.5.13-8.el7.x86_64
[root@binger ~]# find /usr -name *tkinter.so
[root@binger ~]#

# 区别:python3.6与2 python36-tkinter和 tkinter

# 其他版本可通过:yum search thinter

[root@binger ~]# yum search tkinter
loaded plugins: fastestmirror, protectbase
loading mirror speeds from cached hostfile
 * base: mirrors.neusoft.edu.cn
 * epel: mirror.premi.st
 * extras: mirrors.163.com
 * updates: mirrors.zju.edu.cn
0 packages excluded due to repository protections
============================================================================================================================ n/s matched: tkinter ============================================================================================================================
python34-tkinter.x86_64 : a gui toolkit for python 3
python36-tkinter.x86_64 : a gui toolkit for python
tkinter.x86_64 : a graphical user interface for the python scripting language

  name and summary matches only, use "search all" for everything.