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..!!
COMMENTS