pip (package manager)

From Wikipedia, the free encyclopedia
  (Redirected from Pip (Python))
Jump to navigation Jump to search

An output of pip --help
An output of pip --help
Initial release4 April 2011 (8 years ago) (2011-04-04)[1]
Stable release
19.1.1[2] / 6 May 2019 (7 months ago) (2019-05-06)
Repository Edit this at Wikidata
Written inPython
Operating systemOS-independent
TypePackage management system

pip is a de facto standard package-management system used to install and manage software packages written in Python.[4] Many packages can be found in the default source for packages and their dependencies — Python Package Index (PyPI).[5]

Most distributions of Python come with pip preinstalled. Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default.[6]

pip is a recursive acronym for "Pip Installs Packages".[7]

Command-line interface[edit]

An output of pip install virtualenv

One major advantage of pip is the ease of its command-line interface, which makes installing Python software packages as easy as issuing a command:

pip install some-package-name

Users can also easily remove the package:

pip uninstall some-package-name

Most importantly pip has a feature to manage full lists of packages and corresponding version numbers, possible through a "requirements" file.[5] This permits the efficient re-creation of an entire group of packages in a separate environment (e.g. another computer) or virtual environment. This can be achieved with a properly formatted file and the following command[8], where requirements.txt is the name of the file:

pip install -r requirements.txt

Install some package for a specific version python, where ${version} is replaced for 2, 3, 3.4, etc.:

pip${version} install some-package-name

See also[edit]


  1. ^ 1.0 release commit
  2. ^ "Release Notes".
  3. ^ "pip/LICENSE.txt". Github. 17 April 2018. Archived from the original on 1 June 2018. Retrieved 1 June 2018.
  4. ^ Kollár, László. "Managing Python packages the right way". Opensource.com. Red Hat. Retrieved 23 June 2019.
  5. ^ a b "pip documentation". The pip developers. Retrieved 5 January 2012.
  6. ^ "pip installation". Retrieved 24 February 2015.
  7. ^ "Oldest version of pip on pypi". Retrieved 28 June 2018.
  8. ^ Gahlot, Gaurav (6 November 2018). "Most Important pip Commands for a Python Developer - DZone Open Source". dzone.com. Retrieved 23 June 2019.

External links[edit]