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

HostHongKong: $7/month/1GB memory/40GB space/500GB traffic/KVM/Hong Kong

HostHongKong, a Hong Kong hosting provider, claim...

SupremeVPS: $29/year/2G memory/20GB SSD space/5TB traffic/KVM/Los Angeles

SupremeVPS is newly established. We have introduc...

Hostigger: $15/year/1GB RAM/10GB SSD space/1TB bandwidth/KVM/Türkiye

Hostigger, an American hosting provider, was foun...

Impact VPS: $7/month/4 CPU/4GB RAM/35GB SSD/2TB bandwidth/5 IP/OpenVZ

Impact VPS is an American hosting provider under ...

YagHost: $1.5/month/1GB SSD/300GB traffic/5 domains can be bound/Las Vegas

YagHost is an Indian hosting company founded in 2...

PhotonVPS two coupon codes

TENOFF – 10% off recurring invoices! HALFOFF – 50...

StableBox: $0.99/year/10GB storage/100GB traffic/1 site

Stablebox is an American hosting company founded ...

WootHosting: $12/year/2GB RAM/30GB space/3.5TB bandwidth/OpenVZ/Los Angeles

WootHosting has launched 3 discounted VPS, Los An...