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