In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Most people don't understand the knowledge points of this article "How to upgrade python and install pip under Linux", so Xiaobian summarizes the following contents for everyone, the contents are detailed, the steps are clear, and there is certain reference value. I hope everyone can gain something after reading this article. Let's take a look at this article "How to upgrade python and install pip under Linux".
Linux version upgrade:
1, first confirm that the Python version that comes with the Linux operating system is consistent with the version you need
All Python versions are downloaded.
2. wget https://www.python.org/ftp/python/2.7.11/python-2.7.11.tgz to download
3. Decompression
tar -zxvf python-2.7.11.tgz
Enter python-2.7.11 directory input
./ configure
make
make install
4. Check whether the python version is still the default version of the system at this time
Implementation:
mv /usr/bin/python /usr/bin/python2.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
Check again for updates to the version you want to install
pip install
1. A get-pip.py is provided in python; here is the address
Curl is executed under Linux.| Python download installation
It's convenient. You can pack whatever you want.
pip install xxx
Note: After upgrading the python version, note that your yum command may not be used because the yum command is written in python.
# vi /usr/bin/yum #Open the yum command file and change the starting address of the first line script
/usr/bin/python2.6 is OK
Added installation pip under windows:
Quick Ways:
Find c:\python27\scripts directory: run easy_install.exe pip directly and install pip
pip upgrade:
When we install modules using pip, sometimes the pip version is too low
One command solved:
python -m pip install -u pip
Linux and Windows support this command.
The above is the content of this article about "how to upgrade python and install pip under Linux". I believe everyone has a certain understanding. I hope that the content shared by Xiaobian will help everyone. If you want to know more related knowledge, please pay attention to 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.