一个快速安装python高版本的方法yum install python38-tkinter.x86_64

  • Post author:
  • Post category:python


一个、

#> yum search tkinter
python2-tkinter.x86_64 : A graphical user interface for the Python 2 scripting language
python3-tkinter.i686 : A GUI toolkit for Python
python3-tkinter.x86_64 : A GUI toolkit for Python
python38-tkinter.x86_64 : A GUI toolkit for Python
python39-tkinter.x86_64 : A GUI toolkit for Python
[root@vm110-0-1-2 Python-3.8.10]# yum install python38-tkinter.x86_64
Dependencies resolved.
===================================================================================================================================================
 Package                                  Architecture          Version                                             Repository                Size
===================================================================================================================================================
Installing:
 python38-tkinter                         x86_64                3.8.8-4.module_el8.5.0+896+eb9e77ba                 appstream                376 k
Installing dependencies:
 python38                                 x86_64                3.8.8-4.module_el8.5.0+896+eb9e77ba                 appstream                 79 k
 python38-libs                            x86_64                3.8.8-4.module_el8.5.0+896+eb9e77ba                 appstream                8.3 M
 python38-pip-wheel                       noarch                19.3.1-4.module_el8.5.0+896+eb9e77ba                appstream                1.2 M
 python38-setuptools-wheel                noarch                41.6.0-5.module_el8.5.0+896+eb9e77ba                appstream                304 k
 tcl                                      x86_64                1:8.6.8-2.el8                                       baseos                   1.1 M
 tk                                       x86_64                1:8.6.8-1.el8                                       appstream                1.6 M
Installing weak dependencies:
 python38-pip                             noarch                19.3.1-4.module_el8.5.0+896+eb9e77ba                appstream                1.9 M
 python38-setuptools                      noarch                41.6.0-5.module_el8.5.0+896+eb9e77ba                appstream                667 k
Enabling module streams:
 python38                                                       3.8                                                                               
Transaction Summary
===================================================================================================================================================
Install  9 Packages

Total download size: 15 M
Installed size: 55 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): python38-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64.rpm                                                     579 kB/s |  79 kB     00:00    
(2/9): python38-pip-wheel-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch.rpm                                          1.9 MB/s | 1.2 MB     00:00    
(3/9): python38-pip-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch.rpm                                                1.8 MB/s | 1.9 MB     00:01    
(4/9): python38-setuptools-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch.rpm                                         2.2 MB/s | 667 kB     00:00    
(5/9): python38-setuptools-wheel-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch.rpm                                   1.8 MB/s | 304 kB     00:00    
(6/9): python38-tkinter-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64.rpm                                             1.9 MB/s | 376 kB     00:00    
(7/9): tcl-8.6.8-2.el8.x86_64.rpm                                                                                  1.8 MB/s | 1.1 MB     00:00    
(8/9): tk-8.6.8-1.el8.x86_64.rpm                                                                                   2.1 MB/s | 1.6 MB     00:00    
(9/9): python38-libs-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64.rpm                                                2.0 MB/s | 8.3 MB     00:04    
---------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                              2.3 MB/s |  15 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                           1/1 
  Installing       : tcl-1:8.6.8-2.el8.x86_64                                                                                                  1/9 
  Running scriptlet: tcl-1:8.6.8-2.el8.x86_64                                                                                                  1/9 
  Running scriptlet: tk-1:8.6.8-1.el8.x86_64                                                                                                   2/9 
  Installing       : tk-1:8.6.8-1.el8.x86_64                                                                                                   2/9 
  Running scriptlet: tk-1:8.6.8-1.el8.x86_64                                                                                                   2/9 
  Installing       : python38-setuptools-wheel-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch                                                     3/9 
  Installing       : python38-pip-wheel-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch                                                            4/9 
  Installing       : python38-tkinter-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                               5/9 
  Installing       : python38-libs-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                                  6/9 
  Installing       : python38-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                                       7/9 
  Running scriptlet: python38-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                                       7/9 
  Installing       : python38-setuptools-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch                                                           8/9 
  Running scriptlet: python38-setuptools-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch                                                           8/9 
  Installing       : python38-pip-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch                                                                  9/9 
  Running scriptlet: python38-pip-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch                                                                  9/9 
  Verifying        : python38-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                                       1/9 
  Verifying        : python38-libs-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                                  2/9 
  Verifying        : python38-pip-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch                                                                  3/9 
  Verifying        : python38-pip-wheel-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch                                                            4/9 
  Verifying        : python38-setuptools-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch                                                           5/9 
  Verifying        : python38-setuptools-wheel-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch                                                     6/9 
  Verifying        : python38-tkinter-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                                                               7/9 
  Verifying        : tk-1:8.6.8-1.el8.x86_64                                                                                                   8/9 
  Verifying        : tcl-1:8.6.8-2.el8.x86_64                                                                                                  9/9 

Installed:
  python38-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                   python38-libs-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64                   
  python38-pip-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch              python38-pip-wheel-19.3.1-4.module_el8.5.0+896+eb9e77ba.noarch             
  python38-setuptools-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch       python38-setuptools-wheel-41.6.0-5.module_el8.5.0+896+eb9e77ba.noarch      
  python38-tkinter-3.8.8-4.module_el8.5.0+896+eb9e77ba.x86_64           tcl-1:8.6.8-2.el8.x86_64                                                   
  tk-1:8.6.8-1.el8.x86_64   

rm -rf /usr/bin/python3 
ln -s /usr/bin/python3.8 /usr/bin/python3 
ln -s /usr/bin/python3.8 /usr/bin/python
rm -rf /usr/bin/pip3 /usr/bin/pip-3 /usr/bin/pip3.6 /usr/bin/pip-3.6 
ln -s /usr/bin/pip3.8 /usr/bin/pip-3
ln -s /usr/bin/pip3.8 /usr/bin/pip3
ln -s /usr/bin/pip3.8 /usr/bin/pip



版权声明:本文为juewuer原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。