centos 安装 tkinter(不只用来做界面,在pylot…

2019-04-30 23:39:03来源:博客园 阅读 ()

新老客户大回馈,云服务器低至5折

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.

 


原文链接:https://www.cnblogs.com/spaceapp/p/10794508.html
如有疑问请与原作者联系

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:Ubuntu安装PhpStorm并设置快速启动phpstorm

下一篇:Linux 编写安全巡检脚本