CentOS python2.7 easy_install PIP installation

Source: Internet
Author: User

Daoteng for three or four hours, all kinds of download

Start installation

The first thing to install is the zlib zlib-delve OpenSSL openssl-devel readline readline-delve

Yum Install zlib zlib-delve OpenSSL openssl-devel readline readline-delve -y

ReadLine and Readline-devel say no these two things, when entering the interpreter can not use the BACKSPACE key and left and right keys and so on

#开始安装python

Download the Python 2.7.8 installation package

download page https://www.python.org/downloads/

./configure

Make && make install

the Python installation directory path after installation is/usr/local/lib/python2.7

after the installation of the Python executable directory is/usr/local/bin



#开始安装setuptools, that's easy_install.

Download the Setuptools,easy_install installation package

download Page https://pypi.python.org/pypi/setuptools/page has a version, choose the version, I choose the 7.0 installation is not a problem, if you try other versions, the problem should be resolved by itself--| | | |


7.0 Https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip(Executive ez_ setup.py the address shown)

you can run ez_setup.py directly to install the installation package to download the above address

Decompression Run python2.7 setup.py install

after installation is complete, the easy_install executable path is easy_install-2.7 in/usr/local/bin

then install pip with easy_install-2.7

easy_install-2.7 Pip

Complete



CentOS python2.7 easy_install PIP installation

Related Article

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.