Centos6.5 python2.7+supervisor Environment Installation

Source: Internet
Author: User

Centos6.5 python+supervisor Environment Installation

6.5 comes with a python version of 2.6, first download python2.7.6

CD py2.7./configure--prefix=/usr/local/python2.7makemake Install

Next you need to create a link to make the system default Python change to python2.7

Ln-fs/usr/local/python2.7/bin/python2.7/usr/bin/python

Yum will not run after the change, modify the first line of the/usr/bin/yum file at this time

#!/usr/bin/python

Change to the original Python version of the system

#!/usr/bin/python2.6

After the installation of EASY_INSTALL/PIP and use may encounter the following several errors (mainly I do not remember the order of the problem ...):

    • No module named Pkg_resources

    • ' Nonetype ' object has no attribute ' decompressobj '

    • Zipimport. Zipimporterror:can ' t decompress data; Zlib Not available

    • Importerror:cannot Import Name Httpshandler

    • Pkg_resources. distributionnotfound:distribute==0.6.x

    • Pkg_resources. distributionnotfound:pip==1.3.1

Installing these items sequentially should solve the problem:

wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.8.tar.gz# Configure and make process omit yum install OpenSSL openssl-devel-y# then recompile the Python CD py2.7./configure VI Modules/setup # Find the following sentence, remove the comment # zlib zlibmodule.c- i$ (prefix)/include-l$ (exec_prefix)/LIB-LZ recompile installation: Make & make Install # followed by pkg_resources. Distributionnotfound the required version to reinstall

Should then be able to use the correct

Pip Install Supervisor

Centos6.5 python2.7+supervisor Environment Installation

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.