Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install pip on Linux system

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to install pip Linux system, I believe most people still do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

pip is a modern, general-purpose Python package management tool. Python package search, download, install, uninstall functions are provided.

Linux system installation pip detailed steps: 1.1 pip download

# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate1.2 pip install

# tar -xzvf pip-1.5.4.tar.gz``# cd pip-1.5.4``# python setup.py install II. Detailed explanation of pip usage

2.1 pip installation software

# pip install SomePackage`` ``[...]`` ``Successfully installed SomePackage2.2 pip View installed software

# pip show --files SomePackage`` ``Name: SomePackage`` ``Version: 1.0`` ``Location: ``/my/env/lib/pythonx``.x``/site-packages`` ``Files:`` ``..``/ somepackage/__init__``.py`` ``[...] 2.3 pip checks which software needs updating

# pip list --outdated```SomePackage (Current: 1.0 Latest: 2.0)2.4 pip upgrade software

# pip install --upgrade SomePackage`` ``[...]`` ``Found existing installation: SomePackage 1.0`` ``Uninstalling SomePackage:```Successfully uninstalled SomePackage```Running setup.py ``install` `for` `SomePackage`` Successfully installed SomePackage2.5 pip Uninstall Software

$ pip uninstall SomePackage`` ``Uninstalling SomePackage:`` ``/my/env/lib/pythonx``.x``/site-packages/somepackage`` ``Proceed (y``/n``)? y```Successfully uninstalled SomePackage III, pip use example

3.1 Install Redis

# pip install redis3.2 uninstall redis

# pip uninstall redis``Uninstalling redis:`` ``/usr/lib/python2``.6``/site-packages/redis-2``.9.1-py2.6.egg-info``..... omitting something...`` Proceed (y``/n``)? y```Successfully uninstalled redis3.3 View software to be updated

pip list --outdate``pygpgme (Current: 0.1 Latest: 0.3)``pycurl (Current: 7.19.0 Latest: 7.19.3.1)``iniparse (Current: 0.3.1 Latest: 0.4)

4.1 ImportError No module named setuptools

Please refer to ImportError No module named setuptools Solution

V. Explanation of pip parameters

# pip --help Usage: pip[options] Commands: install Install software. uninstall Uninstall software. freeze Output a list of installed software in a certain format List installed software. show Display software details. search Search software, similar to search in yum. wheel Build wheels from your requirements. zip not recommended. Zip individual packages. unzip not recommended. Unzip individual packages. bundle not recommended. Create pybundles. help Current help. General Options: -h, --help Show help. -v, --verbose More output, up to 3 uses-V, --version Realistic version information and exit. -q, --quiet Minimum output. --log-file Overwrite verbose error log, default file: /root/. pip/pip. log--log does not overwrite log recording verbose output. --proxy Specify a proxy in the form [user:passwd@]proxy.server:port. --timeout Connection timeout (default 15 seconds). --exists-action Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. -cert certificate. The above is "Linux system how to install pip" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report