pip

macOS comes with Python so there’s a chance pip is already installed on your machine.

Installation

  1. $ curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
  2. $ sudo python get-pip.py

To verify pip is installed properly run

  1. $ pip --version

If it returns a version pip was successfully installed.

Usage

Here are a few pip commands to get you started.

Install a Python package

  1. $ pip install <package>

Upgrade a package

  1. $ pip install --upgrade <package>

See what’s installed

  1. $ pip freeze

Uninstall a package

  1. $ pip uninstall <package>