# wget
https://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz
# tar -zxvf Python-2.6.6.tgz
# cd Python-2.6.6
# ./configure && make
&& make install
There can be a dependency
error use
# yum install gcc cc
Add the install path
(/usr/local/bin/python by default) to ~/.bash_profile.
# ln -s /usr/bin/python26 ~/bin/python
# export PATH=~/bin:$PATH # Append this
to your ~/.bash_profile for persistence
Now, python command will
execute python 2.6
No comments:
Post a Comment