How To Install Python 3 On Red Hat Enterprise Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Update System Packages: First, update the list of available packages by running the following command:
sudo yum update
2. Add Software Collection Repository:
Software Collections (SCL) provide a way to build, install and use multiple versions of software on the same system, without affecting system–wide installed packages. Install the SCL repository by running the following command:
sudo yum install centos–release–scl
3. Install Python 3:
Use yum install command to install the latest Python 3 packages with SCL:
sudo yum install rh–python36
4. Enable Python 3:
The SCL utilities provide an easy way to enable the installed version of Python 3. Run the following command to start using Python 3:
scl enable rh–python36 bash