centos 安装 tkinter(不只用来做界面,在pylot中也使用)
Posted spaceapp
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos 安装 tkinter(不只用来做界面,在pylot中也使用)相关的知识,希望对你有一定的参考价值。
Python2
[[email protected] ~]# yum -y install tkinter tcl-devel tk-devel [[email protected] ~]# 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 [[email protected] ~]# rpm -qa | grep ^tcl tcl-8.5.13-8.el7.x86_64 tcl-devel-8.5.13-8.el7.x86_64 [[email protected] ~]# find /usr -name *tkinter.so [[email protected] ~]#
Python36
[[email protected] ~]# yum -y install python36-tkinter tcl-devel tk-devel [[email protected] ~]# 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 [[email protected] ~]# rpm -qa | grep ^tcl tcl-8.5.13-8.el7.x86_64 tcl-devel-8.5.13-8.el7.x86_64 [[email protected] ~]# find /usr -name *tkinter.so [[email protected] ~]#
# 区别:Python3.6与2 python36-tkinter和 tkinter
# 其他版本可通过:yum search thinter
[[email protected] ~]# 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.
以上是关于centos 安装 tkinter(不只用来做界面,在pylot中也使用)的主要内容,如果未能解决你的问题,请参考以下文章