In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.