6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS7にPython3をインストール

Posted at

Python3をインストール

  • 現在のバージョン確認
$ python --version
Python 2.7.5
  • CentOS7にyumリポジトリの追加
yum install -y https://repo.ius.io/ius-release-el7.rpm
  • パッケージの検索
yum search python36
==========
=============================================== N/S matched: python36 ===============================================
python36-cairo-devel.x86_64 : Libraries and headers for python36-cairo
python36-greenlet-devel.x86_64 : C development headers for python36-greenlet
python36-psycopg2-tests.x86_64 : Test suite for python36-psycopg2
boost-python36.x86_64 : Shared object symbolic links for Boost.Python 3
boost-python36-devel.x86_64 : Shared object symbolic links for Boost.Python 3
boost-python36-static.x86_64 : The Python3 Boost C++ static development libraries
libpeas-loader-python36.x86_64 : Python 36 loader for libpeas
python36.x86_64 : Interpreter of the Python programming language
python36-Cython.x86_64 : A language for writing Python 3.6 extension modules
python36-GitPython.noarch : Python3 Git Library
python36-HepMC3.x86_64 : HepMC3 Python 3 bindings
python36-HepMC3-rootIO.x86_64 : HepMC3 ROOT I/O module Python 3 bindings
python36-HepMC3-search.x86_64 : HepMC3 search module Python 3 bindings
python36-PyMySQL.noarch : Pure-Python MySQL client library
python36-PyYAML.x86_64 : YAML parser and emitter for Python 3.6
python36-SecretStorage.noarch : Python 3.x module for secure storing of passwords and secrets
python36-abimap.noarch : A helper for library maintainers to use symbol versioning
python36-aiosmtpd.noarch : Asyncio-based SMTP server
==========

いろいろ出てきましたが、必要なパッケージをインストール

  • パッケージのインストール
yum install python36u python36u-libs python36u-devel python36u-pip
  • バージョン確認
$ python --version
Python 2.7.5

$ pip --version
pip 20.2.2 from /usr/lib/python2.7/site-packages/pip (python 2.7)

$ python3.6  --version
Python 3.6.8

$ pip3 --version
pip 20.2.2 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)

python3.6が入りました。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?