Installing Python in Linux or Solaris.
Installing Python in Linux or Solaris can be messy as python is link to the most the system programs.
Here i will show how to install Python at Redhat without un-installing the system in-build python. This tutorial will download the source and build so the same procedure can be use in other distros.
Which version of Python?
I will install here Python 2.7.1 if you want to install any other version, head to python repository and change the version used in this tutorial.
First Check the version installed.
Most probably it will be version 2.4
Now to install Python Some Pre-installation task need to be perform.
1. Install the necessary Package.
2. Now Get the Python 2.7 binary and extract it.
3. Compile and Install the binary.
4. Export the library
5. Create Symbolic link so that it can be executed from anywhere.
6. Now typing python2.7
will give you the python prompt with version 2.7.1
Note: Do not link directly to the “python” to use v2.7 as some system program would use the inbuild python.
Download the script, change the permission and execute it.