Python - pip

> Procedural Languages > Python > Python - (Shipping|Packaging)

1 - About

Pip is a package manager.

Use pip to manage Python packages from PyPI.

  1. Command line options have precedence over
  2. the environment variables, which have precedence over
  3. the config file.
Advertising

3 - Install

apt-get install -y python-pip

4 - Package Management

4.1 - Help

python -m pip --help

4.2 - Install

Pip is included with Python >=3.4 and >=2.7.9.

Install Pip

python -m pip install --upgrade pip setuptools wheel
sudo yum install python-pip

4.3 - Show

pip show SomePackage #Detail about a package
pip show --files SomePackage
pip show numpy
---
Name: numpy
Version: 1.9.2
Location: c:\python27\lib\site-packages
Requires:
Advertising

4.4 - List

pip list # to list installed package
pip list --outdated #outdated package
numpy (1.9.2)
pip (1.5.6)
setuptools (7.0)

4.5 - Upgrade

pip install --upgrade SomePackage

4.6 - uninstall

pip uninstall SomePackage
pip search "query"

5 - Documentation / Reference