In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the knowledge of "how to install python, pip and easy_install in centos6.7". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
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] "how to install python, pip and easy_install in centos6.7" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.