Clever Geek Handbook
📜 ⬆️ ⬇️

Pip (package manager)

pip is a package management system that is used to install and manage software packages written in Python . Many packages can be found in the Python Package Index (PyPI). [four]

pip
Pip help.png
pip --help
Type of
Written onPython
operating systemOS independent
First edition2011-4-4 [1]
Hardware platformPython
Latest version19.1.1 [2] ( 2019-05-06 )
Readable File Formats
LicenseFree software [3]
Sitepip.pypa.io

Starting with Python 2.7.9 and Python 3.4, they contain the pip package (or pip3 for Python 3) by default. [five]

Content

Command Line Interface

 
Result of pip install virtualenv

Most Python distributions already contain pip . If pip is missing, then it can be installed using the package management system or via cURL , a utility for downloading via the Internet:

  curl https://bootstrap.pypa.io/get-pip.py |  python

One of the main advantages of pip is the simplicity of the command line interface , which allows you to install Python packages with a simple command

  pip install some-package-name

It is just as easy to remove packages:

  pip uninstall some-package-name

It is important that pip provides the ability to manage all packages and their versions using the requirements.txt file. This allows you to efficiently reproduce the entire necessary list of packages in a separate environment (for example, on another computer) or in a virtual environment . This is achieved using a properly compiled requirements.txt file and the following command:

  pip install -r requirements.txt

Installing some packages for specific python versions, where ${version} is replaced with 2, 3, 3.6, and so on:

  pip $ { version } install some-package-name

Using Web Hosting

Pip is used to support Python on cloud platforms such as Heroku [6] and PythonAnywhere .

See also

  • Software repository

Notes

  1. ↑ 1.0 release commit
  2. ↑ Release Notes (unspecified) .
  3. ↑ LICENSE.txt (unopened) . github.com/pypa/pip . Date of appeal July 25, 2015. (unavailable link)
  4. ↑ pip documentation (unspecified) . The pip developers. Date of treatment January 5, 2012.
  5. ↑ pip installation (unspecified) . Date of treatment February 24, 2015.
  6. ↑ Getting Started with Python on Heroku / Cedar (Neopr.) . Dev Center Heroku Date of treatment January 5, 2012.

Links

  • pip.pypa.io - official Pip website
Source - https://ru.wikipedia.org/w/index.php?title=Pip_(package_manager)&oldid=99673698


More articles:

  • Stukolkin, Lev Petrovich
  • List of Complete Knights of the Order of Glory (Kyrgyzstan)
  • Ancient Russia in the medieval world (encyclopedia)
  • Muse Software
  • Brezhgis
  • Vukasovich, Marco
  • Adam-Heinrich Muller
  • Kazakhstan Women's Cup 2017
  • Mamedova, Sona Ibrahim Kyzy
  • Magritte (Film Awards, 2017)

All articles

Clever Geek | 2019