Linux VPS upgrade Python 2.7

Linux VPS upgrade Python 2.7

This time we choose version 2.7.8. If you need other versions, please go to: official FTP.

1. Installation
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
tar -xvf Python-2.7.8.tar.xz
cd Python-2.7.8
./configure
make
make install
make clean
make distclean

2. Backup

Back up old python

mv /usr/bin/python /usr/bin/python2.6.6

Establish soft connection

ln -s /usr/local/bin/python2.7 /usr/bin/python

3. Set up yum
vi /usr/bin/yum

Find the first line #!/usr/bin/python and change it to #!/usr/bin/python2.6.6

The upgrade is now complete!

via: Upgrade python 2.7 and install pip, easy_install and setuptool

<<:  HOSTINGandVPS:$30/year/3GB RAM/50GB SSD space/5TB bandwidth/OpenVZ/Canada

>>:  IntroVex: $12/year/256MB/10GB space/500GB traffic/KVM/Los Angeles

Recommend

OLVPS: 104 yuan/month/1GB memory/50GB space/2TB traffic/1Gbps port/KVM/Boli

OLVPS, that is, t667, the boss is a nice person. ...

Winode: $5/month/1GB memory/32GB space/1TB traffic/KVM/Florida

Winode, a newly established hosting provider, see...

IOFLOOD: $69/month/Xeon X3470/8GB memory/1TB hard drive/125 IPs

IOFLOOD is an American hosting company founded in...

WhiteVM: $39/month/I7-920/8GB memory/1TB hard disk/10TB traffic/Germany

WhiteVM, owned by RM Pitronot, was founded in 200...

Enoctus: $20/year/512MB memory/12GB SSD space/500GB bandwidth/KVM/Los Angeles/UK

Enoctus, a UK hosting company, is a formally regi...

uhost.nl: €10/month/1GB RAM/100GB storage/5TB bandwidth/1Gbps/KVM/Netherlands

uhost.nl is a Dutch merchant that mainly provides...