lacz.blogg.se

Install python on rhel 7
Install python on rhel 7




install python on rhel 7

Step 4: Check the Python VersionĬheck the latest version installed of python using below command # python2.7 -V Python 2.7. Python 3. Make altinstall is used to prevent replacing the default python binary file /usr/bin/python. That version is supported until June 2024, which is the same time that RHEL7 moves to its Extended Life phase: Product Life Cycle of Red Hat Software Collections for Red Hat Enterprise Linux 7. Use below set of commands to extract Python source code and compile it on your system using altinstall.

install python on rhel 7

# cd /usr/src # wget Step 3: Extract Archive and Compile

install python on rhel 7

You can also download latest version in place of specified below. # yum install gcc Step 2: Download Python 2.7ĭownload Python using following command from python official site. Use following command to install gcc if you don’t have it installed. Step 1: Install GCCįirstly make sure that you have gcc package installed on your system. This tutorial will help you to install Python 2.7 without removing older versions. Today, I was trying to install an application on my CentOS 6.6 system which required Python >= 2.7, but there are Python 2.6 installed, which we can’t remove as other application’s depends on it.






Install python on rhel 7