pip (package manager)

From Wikipedia, the free encyclopedia
  (Redirected from Pip (Python))
Jump to: navigation, search
An output of pip --help
An output of pip --help
Initial release 4 April 2011 (6 years ago) (2011-04-04)[1]
Stable release
9.0.1[2] / 6 November 2016 (14 months ago) (2016-11-06)
Repository Edit this at Wikidata
Written in Python
Operating system OS-independent
Platform Python
Type Package management system
License Free software[3]
Website pip.pypa.io

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

Python 2.7.9 and later (on the python2 series), and Python 3.4 and later include pip (pip3 for Python 3) by default.[5]

pip is a recursive acronym that can stand for either "Pip Installs Packages" or "Pip Installs Python".[6][7] Alternatively, pip stands for "preferred installer program".[8]

Command-line interface[edit]

An output of pip install virtualenv

Most distributions of Python come with pip preinstalled. If pip is missing, it can be installed through the system package manager or by invoking cURL, a client-side data transfer tool:

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

One major advantage of pip is the ease of its command-line interface, which makes installing Python software packages as easy as issuing one 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.[4] 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 requirements.txt file and the following command:

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. ^ "LICENSE.txt". github.com/pypa/pip. Retrieved 25 July 2015. 
  4. ^ a b "pip documentation". The pip developers. Retrieved 5 January 2012. 
  5. ^ "pip installation". Retrieved 24 Feb 2015. 
  6. ^ "pip - ubuntuusers.de". ubuntuusers.de. Retrieved 17 February 2015. 
  7. ^ "What Does PIP Stand For?". Stack Exchange. Retrieved 17 February 2015. 
  8. ^ "Installing Python Modules — Python 3.6.4rc1 documentation". docs.python.org. Retrieved 2017-12-11. 

External links[edit]