Install Python 3.8 on CentOS 7 (SCL)

Introduction

Install Python 3.8 on CentOS 7 using Software Collection (SCL) Reference: Quick Start — Software Collections

support

When introduced by this method, 2023-05 seems to be EOL from Red Hat Software Collections Product Life Cycle --Red Hat Customer Portal. Is done. Vulnerabilities and bugs reported after that may not be addressed.

LOG

Repository registration

# yum install -y centos-release-scl

Installation

# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)

# yum install -y rh-python38 which
# scl enable rh-python38 bash
...Abbreviation

Various confirmations

# which python{,2,3}
/opt/rh/rh-python38/root/usr/bin/python
/usr/bin/python2
/opt/rh/rh-python38/root/usr/bin/python3

# ll /opt/rh/rh-python38/root/usr/bin/python*
lrwxrwxrwx. 1 root root     9 Jun 24 10:31 /opt/rh/rh-python38/root/usr/bin/python -> ./python3
lrwxrwxrwx. 1 root root     9 Jun 24 10:31 /opt/rh/rh-python38/root/usr/bin/python3 -> python3.8
-rwxr-xr-x. 1 root root 15280 May 28 09:39 /opt/rh/rh-python38/root/usr/bin/python3.8

# python -V
Python 3.8.0

# python3 -V
Python 3.8.0

# yum info rh-python38
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * centos-sclo-rh: ftp.riken.jp
 * centos-sclo-sclo: ftp.riken.jp
 * extras: ftp.riken.jp
 * updates: ftp.riken.jp
Installed Packages
Name        : rh-python38
Arch        : x86_64
Version     : 2.0
Release     : 4.el7
Size        : 0.0
Repo        : installed
From repo   : centos-sclo-rh
Summary     : Package that installs rh-python38
License     : GPLv2+
Description : This is the main package for rh-python38 Software Collection.

Recommended Posts

Install Python 3.8 on CentOS 7 (SCL)
Install Python3.4 on CentOS 6.6
Install Python 2.7.3 on CentOS 5.4
Install Python 3.8 on CentOS 8 (AppStream)
CentOS8 --Install --Python3
Install Python on CentOS using Pyenv
Install Python on CentOS using pyenv
Install python on WSL
Install Faiss on CentOS 7
Install Python on Pidora.
Install Scrapy on python3
Install numba on CentOS 7.2
Install Python on Mac
Install Python 3 on Mac
Install python on windows
Install mecab-python on CentOS
Install Python 3.3 on Ubuntu 12.04
Install Python 3.4 on Mac
Install awscli on centos7
Install Chainer on CentOS 6.7
Install Python 3.6 on Docker
[Ansible] Install dnf on Centos7 with Python3 interpreter
Install Python 3.8 on RHEL 8 (AppStream)
Install watchdog on Windows + Python 3.3
Install pygame on python3.4 on mac
Install ImageMagick-6.2.x series on CentOS7.7
Install pandas 0.14 on python3.4 [on Mac]
Install Python 3.7 and Django 3.0 (CentOS)
Install OpenCV on Ubuntu + python
Install Chrome on CentOS 7 series
Python --Install MySQLDB on EC2
[Python] [Chainer] [Windows] Install Chainer on Windows
Notes on installing Python on CentOS
install python
Install Python Pillow on Amazon Linux
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Steps to install MySQL 8.0 on CentOS 8.1
Install Python3 on Sakura server (FreeBSD)
raspberry pi 4 centos7 install on docker
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Steps to install VirtualBox on CentOS
Install Pytorch on Blender 2.90 python on Windows
Install Python 3.7 Anaconda on MAC, but Python 2
Install python3 on Mac (El Capitan)
Install java (Oracle JDK14) on CentOS7
How to install PyPy on CentOS
Set up Python environment on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Create a python environment on centos
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install Python development environment on Windows 10
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
How to install Maven on CentOS
Steps to install python3 on mac
Build a python3 environment on CentOS7
Study Note 9_Install Jenkins on CentOS7
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)