Install Python for a user

Log into server as user via SSH :

Download Python package of required version from : http://www.python.org/getit/releases/

Say, version required is 2.6.6

Code: 
# wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
Code: 
# tar -xvf Python-2.6.6.tgz
Code: 
# cd Python-2.6.6

Configure and Install Python for user :

Code: 
#./configure --prefix=/home/user_name/Python-2.6.6
Code: 
# make
Code: 
# make install

Python Binary for the user will be : /home/user_name/Python-2.6.6/bin/python and to check version :

Code: 
# /home/user_name/Python-2.6.6/bin/python --version

That’s All..!! 

About Sarath

A Techie from Kochi, India with 8+ years of experience in Linux and Windows server administration. I learn new things almost everyday and I enjoy the fun of learning and sharing my knowledge.