what is the formal latest python3 installtion on rhel 7.X servers

Viewed 6398

I am very confused

after searching a while in google , we found many sites that explain how to install python 3 on rhel 7

I want to explain our needs

we have productions servers , and we want now to add python 3 on all servers

the current python version is python 2.7.5

I also searched on REDHAT sites , but not found formal documentation about latest python 3.x version

what I found is the following site/post

https://www.unixarena.com/2018/05/how-to-install-python-3-on-redhat-enterprise-linux-7-x.html/

we tried it , and we installed successfully the python 3.x version

but the question is , that we not sure if we can trust this post and the python packages

since we are talking on very important and secured servers , we want to be sure about the python 3 installation

please advice - what are the best way to install python 3 on rhel 7.x servers ( better with yum )

we cant download the following rpm's

yum repolist

rhel-7-server-optional-rpms/7Server/x86_64                                   Red Hat Enterprise Linux 7 Server - Optional (RPMs)                                                       22,108
rhel-7-server-rpms/7Server/x86_64                                            Red Hat Enterprise Linux 7 Server (RPMs)                                                                  30,607
rhel-server-rhscl-7-rpms/7Server/x86_64                                      Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server 



 yumdownloader install rh-python38-numpy rh-python38-scipy  rh-python38-python-tools  rh-python38-python-six
Loaded plugins: langpacks, product-id
No Match for argument install
No Match for argument rh-python38-numpy
No Match for argument rh-python38-scipy
No Match for argument rh-python38-python-tools
rh-python38-python-six-1.12.0-10.el7.noarch.rpm    
1 Answers

We recommend to use the Python 3 that is available via Red Hat Software Collections. Software collections are part of your RHEL subscription and have their own release cadence so they can be updated more frequently and independent of RHEL OS releases. These are very secure and fully supported by Red Hat. Software collections is now up to Python 3.8. What's great about software collections is that Python 3.8 installations will be exactly the same across your servers - whether you install some today or in 3 months. A problem with other alternatives (e.g. EPEL) is that the package set may be one thing today but be different in 3 months. Also, software collections allow you to install 2 different Pythons in parallel without contention. A lot of RHEL 7 was built on Python 2.7 and installing Python 3 without software collections can potentially (and commonly) break the OS.

To install python 3 on RHEL 7, use these instructions. Installation requires that you need to enable the correct repos, etc. The first time through may be a bit slow, but people have found it to be routine afterwards.

These same software collections are also delivered as Linux containers and can be found in our catalog.

Related