Python 2.7 installation (yum) (CentOS 6.8)

Installation

python


[root@localhost ~]# yum -y install centos-release-scl-rh
[root@localhost ~]# yum -y install python27

Operation check

python


[root@localhost ~]# python --version
Python 2.6.6
[root@localhost ~]# scl enable python27 bash
[root@localhost ~]# python --version
Python 2.7.8
[root@localhost ~]# exit

Automatic enable setting

python


[root@localhost ~]# python --version
Python 2.6.6
[root@localhost ~]# echo 'source /opt/rh/python27/enable' > /etc/profile.d/python27.sh
[root@localhost ~]# source /etc/profile
[root@localhost ~]# python --version
Python 2.7.8

Recommended Posts

Python 2.7 installation (yum) (CentOS 6.8)
Python 3.5 installation (yum) (CentOS 6.8)
python (pyenv + pyenv-virtualenv) + CentOS7 installation
Python installation
Python installation
centOS 7 installation error
Installation of CentOS 8
Python2.7 + CentOS7 + OpenCV3
PHP installation (CentOS 8)
Python installation (Windows)
Python installation 2020 (macOS)
Python3.4 installation notes
CentOS8 --Install --Python3
CentOS 7 + ffmpeg installation
python openCV installation (memo)
Python basic course (2 Python installation)
Reinforcement learning 1 Python installation
Python installation method Windows
Install Python3.4 on CentOS 6.6
Introducing Python 2.7 to CentOS 6.6
Install Python 2.7.3 on CentOS 5.4
Installation on CentOS8 VirtualBox
Installation of matplotlib (Python 3.3.2)
CentOS 8 installation procedure (latest version)
Docker Easy Installation Procedure (CentOS)
Python 3.6 installation procedure [for Windows]
Install Python 3.8 on CentOS 7 (SCL)
Apache installation fails on CentOS 8.2
OpenCV3 installation for Python3 @macOS
Python installation (Mac edition) (old)
Fastest Python installation on Windows
Install Python 3.7 and Django 3.0 (CentOS)
Python 3 series installation for mac
Switch from python2.7 to python3.6 (centos7)
Ruby, Python Module Installation Guide
Install Python 3.8 on CentOS 8 (AppStream)
Source installation and installation of Python
NTP (Chrony) installation method (CentOS8)
Notes on installing Python on CentOS
Python (Python 3.7.7) installation and basic grammar
I tried to touch Python (installation)
Python
Python practice_Virtual environment setup ~ Django installation
Disable python2.6 ssl3 protocol in centos6
Python memo Anaconda installation (Mac only)
Set up Python environment on CentOS
Create a python environment on centos
Installation of Python, SciPy, matplotlib (Windows)
PIL (Python Imaging Library) installation memorandum
[2021 version] Python installation Windows 10 (64bit) edition
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
Install Python on CentOS using Pyenv
If Python 3.5.0 installation fails on Mac
Teamviewer for Linux installation procedure (CentOS)
python / netCDF / CentOS 6.8> ImportError: No module named netCDF4> sudo yum install netcdf4-python.x86_64
Build a python3 environment on CentOS7
Install Python on CentOS using pyenv
CentOS 6.x x86_64 Python-2.7.4 rpm Package Creation
Installation of Visual studio code and installation of python
Oracle Database 18c installation (Linux CentOS 7 edition)
2017-03-17 CentOS 6.8> Python 3.6.0 introduced / started / stopped in virutalenv