You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
update install guides to python 3 first, then python 2 #778
The command would be yum to use a package manager that can pull from a remote repo. (Using the rpm command is like using dpkg instead of apt/apt-get)
There is no python 3 in the base/default RHEL/Centos 7 package repositories.
Red Hat Software Collections (RHSCL) provides alternate packages that need to be activated/enabled, similar to other python environment managers. For RHEL uses, RHSCL is supported by Red Hat.
(I was replying to @Nefari0uss comment which had incorrect or misleading instructions.)
For RHEL 7, Software collections is the way to get (a supported) Python 3. As of RHSCL 2.3 Python 3.5.1 is included, as well as an updated 2.7. RHSCL 2.4 with updated collections is in beta and due out soon, but I don't think it includes Python 3.6
If you want the absolute latest python on RHEL/CentOS, or any distro that's more than a few months old, you'll need to compile from source, or use alternative packages that don't come with the OS.
Activity
Nefari0uss commentedon Feb 16, 2017
Gonna copy and paste my comment from the previous issue:
For Linux it might be best to simply state to install using the default package manager and give an example for some of the most common ones:
apt-get install python3yum install python3rpm install python3pacman -S python3Please correct me if I'm wrong on yum/rpm. I only know the syntax for apt and pacman and model what I thought it might be based on the Wikipedia page.
rct commentedon Apr 13, 2017
@Nefari0uss
yumto use a package manager that can pull from a remote repo. (Using the rpm command is like using dpkg instead of apt/apt-get)kennethreitz commentedon May 1, 2017
that won't get people the latest python3.
rct commentedon May 1, 2017
(I was replying to @Nefari0uss comment which had incorrect or misleading instructions.)
For RHEL 7, Software collections is the way to get (a supported) Python 3. As of RHSCL 2.3 Python 3.5.1 is included, as well as an updated 2.7. RHSCL 2.4 with updated collections is in beta and due out soon, but I don't think it includes Python 3.6
https://www.softwarecollections.org/en/ is software collections for CentOS.
If you want the absolute latest python on RHEL/CentOS, or any distro that's more than a few months old, you'll need to compile from source, or use alternative packages that don't come with the OS.
dbader commentedon Jul 18, 2018
This may be helpful for updating the install guides: https://realpython.com/installing-python/
apjanke commentedon Dec 18, 2018
Looks like this has been fixed now?