Installing pip

Pip is a tool for installing Python packages. They often have lots of dependencies on other packages, and Pip keeps track of them.

  • Pip is included with later versions of Python. To see if you have pip already, just enter its name at the command line. If usage information appears, you have it already and can leave now!
$ pip

Usage:   
  pip <command> [options]

Commands:
  install                     Install packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
etc.
  • If you don't have pip, you can get it like this:
$ sudo easy_install pip

Upgrading pip

Just so you know, it's a good practice to check for a more recent version. Try it now just for practice.

$ sudo -H pip install pip --upgrade

results matching ""

    No results matching ""