I have a Rhel version of a Linux and would like to upgrade from Python 3.6 to 3.7.2
What is the best and proven way to do it?
Tried with yum but seems that does not have latest versions of python..
I have a Rhel version of a Linux and would like to upgrade from Python 3.6 to 3.7.2
What is the best and proven way to do it?
Tried with yum but seems that does not have latest versions of python..
Sharing what worked for me. Worked for me on Enterprise RHEL 7.
#-> python --version
Python 2.7.5
#-> yum install rh-python38
#-> scl enable rh-python38 bash
#-> python --version
Python 3.8.0
But you will have enter into the scl shell everytime as the default shell would still be Python 2.7. To make this permanent, I had to
Add this to my ~/.bash_profile
source /opt/rh/rh-python38/enable
Below command worked for me.
sudo dnf install python3.8 -y
I wanted to use python3.8 and removed old python3.6 and installed python3.8 using above command
command to remove python3.6
sudo dnf remove python3.6 -y
© 2022 - 2024 — McMap. All rights reserved.
subscription-manager
? – Nihhisubscription-manager
. What is the process for it? Does CentoOS has as well? – Conjunct