centos6.5 update python2.7 affects Pip and Easy_install

Source: Internet
Author: User

    • General update Python only know that will affect Yum, but do not notice will affect the PIP and Easy_install, need to uninstall the installation


  1. Install dependent environments

    1. yum install Zlib-devel zlib  openssl openssl-devel readline-devel  (zlib installation setuptools will be used, there will be reported " runtimeerror:compression requires the (missing) zlib module "; OpenSSL is the PIP will be used, no report )

  2. Install Python

    1. wget HTTPS://WWW.PYTHON.ORG/FTP/PYTHON/2.7.8/PYTHON-2.7.8.TAR.XZ

    2. TAR-XVF PYTHON-2.7.8.TAR.XZ

    3. CD Python-2.7.8 && ./configure && make && make install

    4. Mv/usr/bin/python/usr/bin/python_old

    5. Ln-s/usr/local/bin/python2.7/usr/bin/python

  3. Modify Yum

    1. Vim/usr/bin/yum (Change the language environment of the first line to Python_old)

  4. Install PIP

    1. wget https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz#md5=3823d2343d9f3aaab21cf9c917710196

    2. Tar XF pip-7.1.2.tar.gz && cd pip-7.1.2 && python setup.py install

    3. Pip Install--upgrade pip

    4. Pip-v

  5. Installing Easy_install

    1. wget HTTPS://PYPI.PYTHON.ORG/PACKAGES/SOURCE/S/SETUPTOOLS/SETUPTOOLS-18.2.TAR.GZ#MD5=52B4E48939EF311D7204F8FE940764F4

    2. tar fxz setuptools-18.2.tar.gz && cd setuptools-18.2 && python setup.py install

centos6.5 update python2.7 affects Pip and Easy_install

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.