はじめに
CentOS7.7にPython3をインストール
Python 3 is now available. Installing the python3 package gives you the Python 3.6 interpreter.
LOG
インストール
# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
# yum install -y python3 which
... 略
各種確認
# which python3
/usr/bin/python3
# ll /usr/bin/python*
lrwxrwxrwx. 1 root root 7 Oct 21 13:53 /usr/bin/python -> python2
lrwxrwxrwx. 1 root root 9 Oct 21 13:53 /usr/bin/python2 -> python2.7
-rwxr-xr-x. 1 root root 7216 Aug 7 00:52 /usr/bin/python2.7
lrwxrwxrwx. 1 root root 9 Oct 21 13:55 /usr/bin/python3 -> python3.6
-rwxr-xr-x. 2 root root 11408 Aug 7 17:29 /usr/bin/python3.6
-rwxr-xr-x. 2 root root 11408 Aug 7 17:29 /usr/bin/python3.6m
# python3 -V
Python 3.6.8
# yum info python3
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Installed Packages
Name : python3
Arch : x86_64
Version : 3.6.8
Release : 10.el7
Size : 39 k
Repo : installed
From repo : base
Summary : Interpreter of the Python programming language
URL : https://www.python.org/
License : Python
Description : Python is an accessible, high-level, dynamically typed, interpreted programming
: language, designed with an emphasis on code readability.
: It includes an extensive standard library, and has a vast ecosystem of
: third-party libraries.
:
: The python3 package provides the "python3" executable: the reference
: interpreter for the Python language, version 3.
: The majority of its standard library is provided in the python3-libs package,
: which should be installed automatically along with python3.
: The remaining parts of the Python standard library are broken out into the
: python3-tkinter and python3-test packages, which may need to be installed
: separately.
:
: Documentation for Python is provided in the python3-docs package.
:
: Packages containing additional libraries for Python are generally named with
: the "python3-" prefix.
Available Packages
Name : python3
Arch : i686
Version : 3.6.8
Release : 10.el7
Size : 69 k
Repo : base/7/x86_64
Summary : Interpreter of the Python programming language
URL : https://www.python.org/
License : Python
Description : Python is an accessible, high-level, dynamically typed, interpreted programming
: language, designed with an emphasis on code readability.
: It includes an extensive standard library, and has a vast ecosystem of
: third-party libraries.
:
: The python3 package provides the "python3" executable: the reference
: interpreter for the Python language, version 3.
: The majority of its standard library is provided in the python3-libs package,
: which should be installed automatically along with python3.
: The remaining parts of the Python standard library are broken out into the
: python3-tkinter and python3-test packages, which may need to be installed
: separately.
:
: Documentation for Python is provided in the python3-docs package.
:
: Packages containing additional libraries for Python are generally named with
: the "python3-" prefix.