How to install python 3.8
Published May 14, 2024, 5:54 a.m. by cloudblog
[root@mcloudblog cloudblog]# vi /etc/sudoers
[root@mcloudblog cloudblog]#
[root@mcloudblog cloudblog]#
[root@mcloudblog cloudblog]# cat /etc/sudoers
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhaps using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2
## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem
## Command Aliases
## These are groups of related commands...
## Networking
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool
## Installation and management of software
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum
## Services
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemctl disable
## Updating the locate database
# Cmnd_Alias LOCATE = /usr/bin/updatedb
## Storage
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount
## Delegating permissions
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp
## Processes
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall
## Drivers
# Cmnd_Alias DRIVERS = /sbin/modprobe
# Defaults specification
#
# Refuse to run if unable to disable echo on the tty.
#
Defaults !visiblepw
#
# Preserving HOME has security implications since many programs
# use it when searching for configuration files. Note that HOME
# is already set when the the env_reset option is enabled, so
# this option is only effective for configurations where either
# env_reset is disabled or HOME is present in the env_keep list.
#
Defaults always_set_home
Defaults match_group_by_gid
# Prior to version 1.8.15, groups listed in sudoers that were not
# found in the system group database were passed to the group
# plugin, if any. Starting with 1.8.15, only groups of the form
# %:group are resolved via the group plugin by default.
# We enable always_query_group_plugin to restore old behavior.
# Disable this option for new behavior.
Defaults always_query_group_plugin
Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
#
# Adding HOME to env_keep may enable a user to run unrestricted
# commands via sudo.
#
# Defaults env_keep += "HOME"
Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom
## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
cloudblog ALL= (ALL) ALL
[root@mcloudblog cloudblog]# su - cloudblog
Last login: Sat May 11 12:08:03 GMT 2024 on pts/0
[cloudblog@mcloudblog ~]$
[cloudblog@mcloudblog ~]$
[cloudblog@mcloudblog ~]$
[cloudblog@mcloudblog ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 295M 0 295M 0% /dev
tmpfs 335M 0 335M 0% /dev/shm
tmpfs 335M 5.0M 330M 2% /run
tmpfs 335M 0 335M 0% /sys/fs/cgroup
/dev/sda3 39G 4.2G 35G 11% /
/dev/sda1 200M 7.4M 193M 4% /boot/efi
tmpfs 67M 0 67M 0% /run/user/993
tmpfs 67M 0 67M 0% /run/user/1000
tmpfs 67M 0 67M 0% /run/user/0
[cloudblog@mcloudblog ~]$
[cloudblog@mcloudblog ~]$
[cloudblog@mcloudblog ~]$
[cloudblog@mcloudblog ~]$ python
Python 2.7.5 (default, Nov 13 2023, 01:37:03)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44.0.3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[cloudblog@mcloudblog ~]$ sudo yum install -y oracle-softwarecollectio-release-el7
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for cloudblog:
Sorry, try again.
[sudo] password for cloudblog:
Loaded plugins: langpacks, ulninfo
ol7_MySQL80 | 3.0 kB 00:00:00
ol7_MySQL80_connectors_community | 2.9 kB 00:00:00
ol7_MySQL80_tools_community | 2.9 kB 00:00:00
ol7_UEKR6 | 3.0 kB 00:00:00
ol7_addons | 3.0 kB 00:00:00
ol7_ksplice | 3.0 kB 00:00:00
ol7_latest | 3.6 kB 00:00:00
ol7_oci_included | 2.9 kB 00:00:00
ol7_optional_latest | 3.0 kB 00:00:00
ol7_software_collections | 3.0 kB 00:00:00
(1/20): ol7_MySQL80/x86_64/updateinfo | 71 B 00:00:01
(2/20): ol7_MySQL80_tools_community/x86_64/primary_db | 27 kB 00:00:00
(3/20): ol7_MySQL80/x86_64/primary_db | 284 kB 00:00:01
(4/20): ol7_UEKR6/x86_64/updateinfo | 1.1 MB 00:00:00
(5/20): ol7_addons/x86_64/updateinfo | 168 kB 00:00:00
(6/20): ol7_MySQL80_connectors_community/x86_64/updateinfo | 71 B 00:00:01
(7/20): ol7_addons/x86_64/primary_db | 276 kB 00:00:00
(8/20): ol7_ksplice/updateinfo | 9.6 kB 00:00:00
(9/20): ol7_latest/x86_64/group_gz | 136 kB 00:00:00
(10/20): ol7_MySQL80_connectors_community/x86_64/primary_db | 45 kB 00:00:01
(11/20): ol7_latest/x86_64/updateinfo | 3.6 MB 00:00:00
(12/20): ol7_MySQL80_tools_community/x86_64/updateinfo | 71 B 00:00:01
(13/20): ol7_ksplice/primary_db | 5.2 MB 00:00:00
(14/20): ol7_oci_included/x86_64/primary_db | 1.8 MB 00:00:00
(15/20): ol7_optional_latest/x86_64/updateinfo | 1.5 MB 00:00:00
(16/20): ol7_optional_latest/x86_64/primary_db | 6.3 MB 00:00:00
(17/20): ol7_software_collections/x86_64/primary_db | 6.2 MB 00:00:00
(18/20): ol7_latest/x86_64/primary_db | 51 MB 00:00:04
(19/20): ol7_software_collections/x86_64/updateinfo | 8.9 kB 00:00:03
(20/20): ol7_UEKR6/x86_64/primary_db | 74 MB 00:00:04
No package oracle-softwarecollectio-release-el7 available.
Error: Nothing to do
[cloudblog@mcloudblog ~]$ sudo yum install -y oracle-softwarecollection-release-el7
Loaded plugins: langpacks, ulninfo
Package oracle-softwarecollection-release-el7-1.0-4.el7.x86_64 already installed and latest version
Nothing to do
[cloudblog@mcloudblog ~]$ sudo yum install -y scl-utils rh-python38
Loaded plugins: langpacks, ulninfo
Package scl-utils-20130529-19.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package rh-python38.x86_64 0:2.0-4.el7 will be installed
--> Processing Dependency: rh-python38-runtime for package: rh-python38-2.0-4.el7.x86_64
--> Processing Dependency: rh-python38-python for package: rh-python38-2.0-4.el7.x86_64
--> Processing Dependency: rh-python38-python-pip for package: rh-python38-2.0-4.el7.x86_64
--> Processing Dependency: rh-python38-python-setuptools for package: rh-python38-2.0-4.el7.x86_64
--> Running transaction check
---> Package rh-python38-python.x86_64 0:3.8.18-2.el7 will be installed
--> Processing Dependency: rh-python38-python-libs(x86-64) = 3.8.18-2.el7 for package: rh-python38-python-3.8.18-2.el7.x86_64
--> Processing Dependency: libpython3.8.so.rh-python38-1.0()(64bit) for package: rh-python38-python-3.8.18-2.el7.x86_64
---> Package rh-python38-python-pip.noarch 0:19.3.1-4.el7 will be installed
---> Package rh-python38-python-setuptools.noarch 0:41.6.0-8.el7 will be installed
---> Package rh-python38-runtime.x86_64 0:2.0-4.el7 will be installed
--> Running transaction check
---> Package rh-python38-python-libs.x86_64 0:3.8.18-2.el7 will be installed
--> Processing Dependency: rh-python38-python-pip-wheel for package: rh-python38-python-libs-3.8.18-2.el7.x86_64
--> Processing Dependency: rh-python38-python-setuptools-wheel for package: rh-python38-python-libs-3.8.18-2.el7.x86_64
--> Running transaction check
---> Package rh-python38-python-pip-wheel.noarch 0:19.3.1-4.el7 will be installed
---> Package rh-python38-python-setuptools-wheel.noarch 0:41.6.0-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================
Installing:
rh-python38 x86_64 2.0-4.el7 ol7_software_collections 2.7 k
Installing for dependencies:
rh-python38-python x86_64 3.8.18-2.el7 ol7_software_collections 72 k
rh-python38-python-libs x86_64 3.8.18-2.el7 ol7_software_collections 7.6 M
rh-python38-python-pip noarch 19.3.1-4.el7 ol7_software_collections 1.6 M
rh-python38-python-pip-wheel noarch 19.3.1-4.el7 ol7_software_collections 1.0 M
rh-python38-python-setuptools noarch 41.6.0-8.el7 ol7_software_collections 636 k
rh-python38-python-setuptools-wheel noarch 41.6.0-8.el7 ol7_software_collections 299 k
rh-python38-runtime x86_64 2.0-4.el7 ol7_software_collections 1.1 M
Transaction Summary
==============================================================================================================================================
Install 1 Package (+7 Dependent packages)
Total download size: 12 M
Installed size: 48 M
Downloading packages:
(1/8): rh-python38-2.0-4.el7.x86_64.rpm | 2.7 kB 00:00:00
(2/8): rh-python38-python-3.8.18-2.el7.x86_64.rpm | 72 kB 00:00:01
(3/8): rh-python38-python-pip-19.3.1-4.el7.noarch.rpm | 1.6 MB 00:00:00
(4/8): rh-python38-python-pip-wheel-19.3.1-4.el7.noarch.rpm | 1.0 MB 00:00:00
(5/8): rh-python38-python-setuptools-41.6.0-8.el7.noarch.rpm | 636 kB 00:00:00
(6/8): rh-python38-python-setuptools-wheel-41.6.0-8.el7.noarch.rpm | 299 kB 00:00:00
(7/8): rh-python38-runtime-2.0-4.el7.x86_64.rpm | 1.1 MB 00:00:00
(8/8): rh-python38-python-libs-3.8.18-2.el7.x86_64.rpm | 7.6 MB 00:00:00
----------------------------------------------------------------------------------------------------------------------------------------------
Total 8.3 MB/s | 12 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : rh-python38-runtime-2.0-4.el7.x86_64 1/8
Installing : rh-python38-python-pip-wheel-19.3.1-4.el7.noarch 2/8
Installing : rh-python38-python-setuptools-wheel-41.6.0-8.el7.noarch 3/8
Installing : rh-python38-python-setuptools-41.6.0-8.el7.noarch 4/8
Installing : rh-python38-python-3.8.18-2.el7.x86_64 5/8
Installing : rh-python38-python-libs-3.8.18-2.el7.x86_64 6/8
Installing : rh-python38-python-pip-19.3.1-4.el7.noarch 7/8
Installing : rh-python38-2.0-4.el7.x86_64 8/8
Verifying : rh-python38-2.0-4.el7.x86_64 1/8
Verifying : rh-python38-python-pip-wheel-19.3.1-4.el7.noarch 2/8
Verifying : rh-python38-python-setuptools-41.6.0-8.el7.noarch 3/8
Verifying : rh-python38-python-setuptools-wheel-41.6.0-8.el7.noarch 4/8
Verifying : rh-python38-python-3.8.18-2.el7.x86_64 5/8
Verifying : rh-python38-python-pip-19.3.1-4.el7.noarch 6/8
Verifying : rh-python38-python-libs-3.8.18-2.el7.x86_64 7/8
Verifying : rh-python38-runtime-2.0-4.el7.x86_64 8/8
Installed:
rh-python38.x86_64 0:2.0-4.el7
Dependency Installed:
rh-python38-python.x86_64 0:3.8.18-2.el7 rh-python38-python-libs.x86_64 0:3.8.18-2.el7
rh-python38-python-pip.noarch 0:19.3.1-4.el7 rh-python38-python-pip-wheel.noarch 0:19.3.1-4.el7
rh-python38-python-setuptools.noarch 0:41.6.0-8.el7 rh-python38-python-setuptools-wheel.noarch 0:41.6.0-8.el7
rh-python38-runtime.x86_64 0:2.0-4.el7
Complete!
[cloudblog@mcloudblog ~]$ scl enable rh-python38 bash
[cloudblog@mcloudblog ~]$ python
Python 3.8.18 (default, Dec 1 2023, 03:21:07)
[GCC 9.3.1 20200408 (Red Hat 9.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Similar posts
Creating a Python virtual environment
5 comments
Comment 2 by TestUser April 1, 2025, 8:32 p.m.
tjhpK jAIJ JBI LrIWW FiyYd HoKLr oQOQa
Comment 3 by John April 8, 2025, 5:35 p.m.
EeHszUJ LHvG lqZSEJTy twWBW zYabYsD
Comment 4 by John April 24, 2025, 4:47 a.m.
wfm yWymMNt YgXPTNZL ZyvsBwtq QvaxuZcP
Comment 5 by sid Aug. 22, 2025, 6:58 a.m.
Current Status of Python Versions
Python 3.7 → Released in 2018, reached end of life (EOL) in June 2023 (no more security or bug fixes).
Later releases (still supported):
Python 3.8 (EOL Oct 2024)
Python 3.9 (EOL Oct 2025)
Python 3.10 (security updates until Oct 2026)
Python 3.11 (active until Oct 2027)
Python 3.12 (latest stable, released Oct 2023)
Python 3.13 (currently in development, expected Oct 2025)
Comment 1 by Tonu May 14, 2024, 6:21 a.m.
How to install Django.
================
(cloudblog) [cloudblog@mcloudblog mcloudblog]$ pip install Django~=4.2.11
Collecting Django~=4.2.11
Downloading https://files.pythonhosted.org/packages/21/b3/7b72ea66fa18c3e4c9b686fc2fe65b675c37a64574add5d6cfaeb1e06a28/Django-4.2.13-py3-none-any.whl (8.0MB)
|████████████████████████████████| 8.0MB 11.0MB/s
Collecting backports.zoneinfo; python_version < "3.9"
Downloading https://files.pythonhosted.org/packages/1a/ab/3e941e3fcf1b7d3ab3d0233194d99d6a0ed6b24f8f956fc81e47edc8c079/backports.zoneinfo-0.2.1-cp38-cp38-manylinux1_x86_64.whl (74kB)
|████████████████████████████████| 81kB 1.1MB/s
Collecting sqlparse>=0.3.1
Downloading https://files.pythonhosted.org/packages/43/5d/a0fdd88fd486b39ae1fd1a75ff75b4e29a0df96c0304d462fd407b82efe0/sqlparse-0.5.0-py3-none-any.whl (43kB)
|████████████████████████████████| 51kB 7.7MB/s
Collecting asgiref<4,>=3.6.0
Downloading https://files.pythonhosted.org/packages/39/e3/893e8757be2612e6c266d9bb58ad2e3651524b5b40cf56761e985a28b13e/asgiref-3.8.1-py3-none-any.whl
Collecting typing-extensions>=4; python_version < "3.11"
Downloading https://files.pythonhosted.org/packages/01/f3/936e209267d6ef7510322191003885de524fc48d1b43269810cd589ceaf5/typing_extensions-4.11.0-py3-none-any.whl
Installing collected packages: backports.zoneinfo, sqlparse, typing-extensions, asgiref, Django
Successfully installed Django-4.2.13 asgiref-3.8.1 backports.zoneinfo-0.2.1 sqlparse-0.5.0 typing-extensions-4.11.0
WARNING: You are using pip version 19.3.1; however, version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(cloudblog) [cloudblog@mcloudblog mcloudblog]$ python -m django --version
4.2.13
(cloudblog) [cloudblog@mcloudblog mcloudblog]$ pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl (2.1MB)
|████████████████████████████████| 2.1MB 13.2MB/s
Installing collected packages: pip
Found existing installation: pip 19.3.1
Uninstalling pip-19.3.1:
Successfully uninstalled pip-19.3.1
Successfully installed pip-24.0