Download Python : Below the following commands to download and extract Python 2.7 to your hosting account.
Install Python : When extracted finish you can use the following commands to configure and install Python.
For your local version of python to load you will need to add it to the .bashrc file.
Enter:
export PATH=$HOME/python/Python-2.7.2/:$PATH
Write the changes and close vim:
:wq
Press Enter
goto Python folder and run the file
# mkdir ~/python
# cd ~/python
# wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
# tar zxfv Python-2.7.2.tgz
# find ~/python -type d | xargs chmod 0755
# cd Python-2.7.2
Install Python : When extracted finish you can use the following commands to configure and install Python.
# ./configure --prefix=$HOME/pythonModify the .bashrc
# make
# make install
For your local version of python to load you will need to add it to the .bashrc file.
# vim ~/.bashrcPress i
Enter:
export PATH=$HOME/python/Python-2.7.2/:$PATH
Write the changes and close vim:
:wq
Press Enter
# source ~/.bashrcput your Python file in any location like : /opt/Python
goto Python folder and run the file
Thanks
# cd /opt/Python
# Python filename.py