-->

Sunday, April 15, 2018

pip is a package management system used to install and manage software packages written in Python. Many packages can be found in the default source for packages and their dependencies â€" Python Package Index (PyPI).

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

Starting with pip 10.0.0, python 2.6 is no longer supported. Users willing to use pip on python 2.6 should stay on version 9.

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

Command-line interface




Fabio Fleitas, Python Package Management with PIP-Tools, PyBay 2017 Lightning Talk -

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:

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:

Users can also easily remove the package:

Most importantly pip has a feature to manage full lists of packages and corresponding version numbers, possible through a "requirements" file. 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:

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

See also


How to Install and Uninstall Python Packages Using Pip â€
How to Install and Uninstall Python Packages Using Pip â€" dbader.org. Source : dbader.org

  • Anaconda
  • Enthought
  • Setuptools
  • Software repository

References


Missing Python Packaging Tools on Python Interpreter - Django ...
Missing Python Packaging Tools on Python Interpreter - Django .... Source : stackoverflow.com

External links


How to Install and Uninstall Python Packages Using Pip â€
How to Install and Uninstall Python Packages Using Pip â€" dbader.org. Source : dbader.org

  • Official website

python - How do I install pip on macOS or OS X? - Stack Overflow
python - How do I install pip on macOS or OS X? - Stack Overflow. Source : stackoverflow.com

 
Sponsored Links