Python - pip

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.

Install

apt-get install -y python-pip

Package Management

Help

python -m pip --help

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

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:

List

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

Upgrade

pip install --upgrade SomePackage

uninstall

pip uninstall SomePackage
pip search "query"

Documentation / Reference


Powered by ComboStrap