Installation of CentOS installation update Python2.7 and PIP

Source: Internet
Author: User
Tags sqlite

First, the relevant software to update

Yum-y Update
Yum groupinstall-y Development
Yum install-y zlib zlib-dev OpenSSL openssl-devel sqlite sqlite-devel bzip bzip2-devel mysql-devel

Second, install update Python, and modify the relevant configuration information

CD Python-2.7.14
Make && make Altinstall
Vi/usr/bin/yum (#!/usr/bin/python changed to #!/usr/bin/python2.6.6)
Because Yum relies on Python2.6, it cannot be used after the update, in order to solve this problem, the Yum configuration connection depends on or point to Python2.6, which is equivalent to installing two versions to do different things

Third, install Pip

PIP is installed mainly to facilitate the installation of software later

TAR-XVF setuptools-1.4.2.tar.gz
CD setuptools-1.4.2
Python Install
Easy_install pip
Curl | python2.7

Because there are a lot of software in use when the 2.7 support is still relatively stable, so this time no use 3.0

3.0 is also the future development trend

Installation of CentOS installation update Python2.7 and PIP

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.