How to install python2.7, pip2.7, easy_install-2.7 in centos6.7
Most people do not understand the knowledge points of this article "how to install python2.7, pip2.7 and easy_install-2.7 in centos6.7", so the editor summarizes the following contents. The content is detailed, the steps are clear, and it has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install python2.7, pip2.7, easy_install-2.7 in centos6.7" article.
Centos6 comes with python2.6 version. Install python2.7, easy_install-2.7, pip2.7 as needed.
Dependence
Yum groupinstall-y development toolsyum install-y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
Install python2.7
Wget https://www.python.org/ftp/python/2.7.11/python-2.7.11.tgztar xvf python-2.7.11.tgzcd python-2.7.11./configure-prefix=/usr/localmake & & make install & & echo ok
The executable directory of the installed python is / usr/local/bin
The path to the python installation directory after installation is / usr/local/lib/python2.7
At this point, you can verify the installation through the python2.7 command
Install setuptools (easy_install-2.7) + pip2.7
Note: be sure to use python2.7 to execute the relevant commands
# download setuptools,easy_install installation package wget https://bootstrap.pypa.io/ez_setup.py# installation easy_install-2.7python2.7 ez_setup.py# installation / usr/local/bin/ directory easy_install-2.7# installation pip2.7easy_install-2.7 pip# installation / usr/local/bin/ directory pip2.7# upgrade pip2.7 version pip2.7 install--upgrade pip
Now the installation of easy_install-2.7 and pip2.7 is complete.
Pip2.7 install [packagename] pip2.7 install--upgrade [packagename] pip2.7 uninstall [packagename] the above is about "how to install python2.7, pip2.7, easy_install-2.7 in centos6.7". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.