How to install Python2.7 in Linux

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

Python2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1.

This article contains the detailed steps to install and configure Python2.7 in Linux.

Step1: Install dependencies

#yum install gcc

Step2: Download the package

#wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz

Step3: Extract the downloaded package

#tar xzf Python-2.7.13.tgz

Step4: Change the location to the extracted folder

#cd Python-2.7.13

Step5: Compile and install the package

#./configure

#make altinstall

 

That's all........

Leave a Reply

Your email address will not be published. Required fields are marked *