install python 3.7 on centos7

install python 3.7 on centos7

#install yum repository
[root@localhost ~]# yum install -y https://centos7.iuscommunity.org/ius-release.rpm
Loaded plugins: fastestmirror, langpacks
ius-release.rpm                                                                                                                | 8.2 kB  00:00:00
Examining /var/tmp/yum-root-CBgYb0/ius-release.rpm: ius-release-2-1.el7.ius.noarch
Marking /var/tmp/yum-root-CBgYb0/ius-release.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package ius-release.noarch 0:2-1.el7.ius will be installed
--> Finished Dependency Resolution
base/7/x86_64                                                                                                                  | 3.6 kB  00:00:00
base/7/x86_64/group_gz                                                                                                         | 165 kB  00:00:00
base/7/x86_64/primary_db                                                                                                       | 6.0 MB  00:00:00
epel/x86_64/metalink                                                                                                           | 9.7 kB  00:00:00
epel/x86_64                                                                                                                    | 5.4 kB  00:00:00
epel/x86_64/group_gz                                                                                                           |  90 kB  00:00:00
epel/x86_64/updateinfo                                                                                                         | 1.0 MB  00:00:01
epel/x86_64/primary_db                                                                                                         | 6.9 MB  00:00:03
extras/7/x86_64                                                                                                                | 2.9 kB  00:00:00
extras/7/x86_64/primary_db                                                                                                     | 153 kB  00:00:00
updates/7/x86_64                                                                                                               | 2.9 kB  00:00:00
updates/7/x86_64/primary_db                                                                                                    | 4.2 MB  00:00:00

Dependencies Resolved

======================================================================================================================================================
 Package                             Arch                           Version                                Repository                            Size
======================================================================================================================================================
Installing:
 ius-release                         noarch                         2-1.el7.ius                            /ius-release                         4.5 k

Transaction Summary
======================================================================================================================================================
Install  1 Package

Total size: 4.5 k
Installed size: 4.5 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : ius-release-2-1.el7.ius.noarch                                                                                                     1/1
  Verifying  : ius-release-2-1.el7.ius.noarch                                                                                                     1/1

Installed:
  ius-release.noarch 0:2-1.el7.ius

Complete!


#install python3
[root@localhost ~]# yum install -y python36u python36u-libs python36u-devel python36u-pip
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 25323.
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * epel: www.ftp.ne.jp
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
Package python36u is obsoleted by python3, trying to install python3-3.6.8-10.el7.x86_64 instead
Package python36u-libs is obsoleted by python3-libs, trying to install python3-libs-3.6.8-10.el7.x86_64 instead
Package python36u-devel is obsoleted by python3-devel, trying to install python3-devel-3.6.8-10.el7.x86_64 instead
Package python36u-pip is obsoleted by python3-pip, trying to install python3-pip-9.0.3-5.el7.noarch instead
Resolving Dependencies
--> Running transaction check
---> Package python3.x86_64 0:3.6.8-10.el7 will be installed
--> Processing Dependency: python3-setuptools for package: python3-3.6.8-10.el7.x86_64
---> Package python3-devel.x86_64 0:3.6.8-10.el7 will be installed
--> Processing Dependency: redhat-rpm-config for package: python3-devel-3.6.8-10.el7.x86_64
--> Processing Dependency: python3-rpm-macros for package: python3-devel-3.6.8-10.el7.x86_64
--> Processing Dependency: python3-rpm-generators for package: python3-devel-3.6.8-10.el7.x86_64
--> Processing Dependency: python-rpm-macros for package: python3-devel-3.6.8-10.el7.x86_64
---> Package python3-libs.x86_64 0:3.6.8-10.el7 will be installed
---> Package python3-pip.noarch 0:9.0.3-5.el7 will be installed
--> Running transaction check
---> Package python-rpm-macros.noarch 0:3-32.el7 will be installed
--> Processing Dependency: python-srpm-macros for package: python-rpm-macros-3-32.el7.noarch
---> Package python3-rpm-generators.noarch 0:6-2.el7 will be installed
---> Package python3-rpm-macros.noarch 0:3-32.el7 will be installed
---> Package python3-setuptools.noarch 0:39.2.0-10.el7 will be installed
---> Package redhat-rpm-config.noarch 0:9.1.0-88.el7.centos will be installed
--> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-88.el7.centos.noarch
--> Running transaction check
---> Package dwz.x86_64 0:0.11-3.el7 will be installed
---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed
---> Package python-srpm-macros.noarch 0:3-32.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================================
 Package                                      Arch                         Version                                   Repository                  Size
======================================================================================================================================================
Installing:
 python3                                      x86_64                       3.6.8-10.el7                              base                        69 k
 python3-devel                                x86_64                       3.6.8-10.el7                              base                       215 k
 python3-libs                                 x86_64                       3.6.8-10.el7                              base                       7.0 M
 python3-pip                                  noarch                       9.0.3-5.el7                               base                       1.8 M
Installing for dependencies:
 dwz                                          x86_64                       0.11-3.el7                                base                        99 k
 perl-srpm-macros                             noarch                       1-8.el7                                   base                       4.6 k
 python-rpm-macros                            noarch                       3-32.el7                                  base                       8.8 k
 python-srpm-macros                           noarch                       3-32.el7                                  base                       8.4 k
 python3-rpm-generators                       noarch                       6-2.el7                                   base                        20 k
 python3-rpm-macros                           noarch                       3-32.el7                                  base                       7.7 k
 python3-setuptools                           noarch                       39.2.0-10.el7                             base                       629 k
 redhat-rpm-config                            noarch                       9.1.0-88.el7.centos                       base                        81 k

Transaction Summary
======================================================================================================================================================
Install  4 Packages (+8 Dependent packages)

Total download size: 9.8 M
Installed size: 49 M
Downloading packages:
(1/12): perl-srpm-macros-1-8.el7.noarch.rpm                                                                                    | 4.6 kB  00:00:00
(2/12): dwz-0.11-3.el7.x86_64.rpm                                                                                              |  99 kB  00:00:00
(3/12): python-srpm-macros-3-32.el7.noarch.rpm                                                                                 | 8.4 kB  00:00:00
(4/12): python-rpm-macros-3-32.el7.noarch.rpm                                                                                  | 8.8 kB  00:00:00
(5/12): python3-3.6.8-10.el7.x86_64.rpm                                                                                        |  69 kB  00:00:00
(6/12): python3-devel-3.6.8-10.el7.x86_64.rpm                                                                                  | 215 kB  00:00:00
(7/12): python3-pip-9.0.3-5.el7.noarch.rpm                                                                                     | 1.8 MB  00:00:00
(8/12): python3-rpm-generators-6-2.el7.noarch.rpm                                                                              |  20 kB  00:00:00
(9/12): python3-libs-3.6.8-10.el7.x86_64.rpm                                                                                   | 7.0 MB  00:00:00
(10/12): python3-rpm-macros-3-32.el7.noarch.rpm                                                                                | 7.7 kB  00:00:00
(11/12): redhat-rpm-config-9.1.0-88.el7.centos.noarch.rpm                                                                      |  81 kB  00:00:00
(12/12): python3-setuptools-39.2.0-10.el7.noarch.rpm                                                                           | 629 kB  00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                  11 MB/s | 9.8 MB  00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python3-pip-9.0.3-5.el7.noarch                                                                                                    1/12
  Installing : python3-setuptools-39.2.0-10.el7.noarch                                                                                           2/12
  Installing : python3-3.6.8-10.el7.x86_64                                                                                                       3/12
  Installing : python3-libs-3.6.8-10.el7.x86_64                                                                                                  4/12
  Installing : python-srpm-macros-3-32.el7.noarch                                                                                                5/12
  Installing : python-rpm-macros-3-32.el7.noarch                                                                                                 6/12
  Installing : python3-rpm-generators-6-2.el7.noarch                                                                                             7/12
  Installing : dwz-0.11-3.el7.x86_64                                                                                                             8/12
  Installing : python3-rpm-macros-3-32.el7.noarch                                                                                                9/12
  Installing : perl-srpm-macros-1-8.el7.noarch                                                                                                  10/12
  Installing : redhat-rpm-config-9.1.0-88.el7.centos.noarch                                                                                     11/12
  Installing : python3-devel-3.6.8-10.el7.x86_64                                                                                                12/12
  Verifying  : python3-rpm-generators-6-2.el7.noarch                                                                                             1/12
  Verifying  : perl-srpm-macros-1-8.el7.noarch                                                                                                   2/12
  Verifying  : python3-libs-3.6.8-10.el7.x86_64                                                                                                  3/12
  Verifying  : python3-devel-3.6.8-10.el7.x86_64                                                                                                 4/12
  Verifying  : python3-rpm-macros-3-32.el7.noarch                                                                                                5/12
  Verifying  : python3-pip-9.0.3-5.el7.noarch                                                                                                    6/12
  Verifying  : python3-setuptools-39.2.0-10.el7.noarch                                                                                           7/12
  Verifying  : python-rpm-macros-3-32.el7.noarch                                                                                                 8/12
  Verifying  : dwz-0.11-3.el7.x86_64                                                                                                             9/12
  Verifying  : python-srpm-macros-3-32.el7.noarch                                                                                               10/12
  Verifying  : python3-3.6.8-10.el7.x86_64                                                                                                      11/12
  Verifying  : redhat-rpm-config-9.1.0-88.el7.centos.noarch                                                                                     12/12

Installed:
  python3.x86_64 0:3.6.8-10.el7    python3-devel.x86_64 0:3.6.8-10.el7    python3-libs.x86_64 0:3.6.8-10.el7    python3-pip.noarch 0:9.0.3-5.el7

Dependency Installed:
  dwz.x86_64 0:0.11-3.el7                          perl-srpm-macros.noarch 0:1-8.el7                     python-rpm-macros.noarch 0:3-32.el7
  python-srpm-macros.noarch 0:3-32.el7             python3-rpm-generators.noarch 0:6-2.el7               python3-rpm-macros.noarch 0:3-32.el7
  python3-setuptools.noarch 0:39.2.0-10.el7        redhat-rpm-config.noarch 0:9.1.0-88.el7.centos

Complete!
[root@localhost ~]#


#check version
[root@localhost ~]# python -V
Python 2.7.5
[root@localhost ~]# python3.6 -V
Python 3.6.8
[root@localhost ~]#




댓글

이 블로그의 인기 게시물

error You have $NVM_DIR set to "/root/.nvm", but that directory does not exist. Check your profile files and environment.

linux mint install xrdp

centos 6.x yum update problem making ssl connection