EPELを使ったPython3のインストールを以前書いたのですが、CentOS7のbaseリポジトリにpython3が入ったようです。OSインストール直後の環境で確認してみました。
[root@localhost ~]# cat /etc/centos-release CentOS Linux release 7.6.1810 (Core) [root@localhost ~]# yum search python3 読み込んだプラグイン:fastestmirror Loading mirror speeds from cached hostfile * base: ftp.iij.ad.jp * extras: ftp.iij.ad.jp * updates: ftp.iij.ad.jp ===================================== N/S matched: python3 ===================================== python3-pip.noarch : A tool for installing and managing Python3 packages python3-test.i686 : The self-test suite for the main python3 package python3-test.x86_64 : The self-test suite for the main python3 package libselinux-python3.x86_64 : SELinux python 3 bindings for libselinux python3.i686 : Interpreter of the Python programming language python3.x86_64 : Interpreter of the Python programming language python3-debug.i686 : Debug version of the Python runtime python3-debug.x86_64 : Debug version of the Python runtime python3-devel.i686 : Libraries and header files needed for Python development python3-devel.x86_64 : Libraries and header files needed for Python development python3-idle.i686 : A basic graphical development environment for Python python3-idle.x86_64 : A basic graphical development environment for Python python3-libcomps.x86_64 : Python 3 bindings for libcomps library python3-libs.i686 : Python runtime libraries python3-libs.x86_64 : Python runtime libraries python3-rpm-generators.noarch : Dependency generators for Python RPMs python3-rpm-macros.noarch : RPM macros for building Python 3 packages python3-setuptools.noarch : Easily build and distribute Python 3 packages python3-tkinter.i686 : A GUI toolkit for Python python3-tkinter.x86_64 : A GUI toolkit for Python python3-wheel.noarch : Built-package format for Python Name and summary matches only, use "search all" for everything.パッケージの情報を確認すると、バージョンは3.6でした。
[root@localhost ~]# yum info python3
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
利用可能なパッケージ
名前 : python3
アーキテクチャー : x86_64
バージョン : 3.6.8
リリース : 13.el7
容量 : 69 k
リポジトリー : base/7/x86_64
要約 : Interpreter of the Python programming language
URL : https://www.python.org/
ライセンス : Python
説明 : 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.
インストールして...
[root@localhost ~]# yum install python3 python3-pipしっかり
[root@localhost ~]# python3 -V Python 3.6.8 [root@localhost ~]# pip3 -V pip 9.0.3 from /usr/lib/python3.6/site-packages (python 3.6)入りましたね!
コメント
コメントを投稿