Skip to content

Instantly share code, notes, and snippets.

@ionatan-israel
Created December 5, 2013 12:13
Show Gist options
  • Save ionatan-israel/7804286 to your computer and use it in GitHub Desktop.
Save ionatan-israel/7804286 to your computer and use it in GitHub Desktop.
#entOS release 6.4 (Final)
#16:23:42 2013-10-24
#[Ivan Lyon]([email protected])
python -V #see the python version
yum -y install gcc #install the gcc
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2 #download the python open source code
tar -jvx -f ./Python-2.7.5.tar.bz2 #Decompress the open source code
cd ./Python-2.7.5
./configure #install by gcc/make
make all
make install
make clean
make distclean
/usr/local/bin/python2.7 -V #see the python version MSG
mv /usr/bin/python /usr/bin/python2.6 #set the default python version
ln -s /usr/local/bin/python2.7 /usr/bin/python
python -V
vim /usr/bin/yum #set the command "yum" with old python version
#change the first line "#!/usr/bin/python" with "#!/usr/bin/python2.6".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment