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

Python2

[root@binger ~]# yum -y install tkinter  tcl-devel tk-devel
[root@binger ~]# rpm -qa | grep ^tk
tkinter-2.7.-.el7_6.x86_64
tk-devel-8.5.-.el7.x86_64
tk-8.5.-.el7.x86_64
[root@binger ~]# rpm -qa | grep ^tcl
tcl-8.5.-.el7.x86_64
tcl-devel-8.5.-.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.-.el7_6.x86_64
tk-devel-8.5.-.el7.x86_64
tk-8.5.-.el7.x86_64
[root@binger ~]# rpm -qa | grep ^tcl
tcl-8.5.-.el7.x86_64
tcl-devel-8.5.-.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..com
* updates: mirrors.zju.edu.cn
packages excluded due to repository protections
============================================================================================================================ N/S matched: tkinter ============================================================================================================================
python34-tkinter.x86_64 : A GUI toolkit for Python
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.
上一篇:iOS基于AVPlayer的视频播放


下一篇:用Python的pandas框架操作Excel文件中的数据教程