python 2.7 pip install mac code example

Example 1: install pip on macos

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo easy_install pip

Example 2: mac os install python 3

brew install python3

Example 3: pip installer for mac

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

Example 4: install python in mac

brew install python3
brew install python2

Example 5: install python 3 on mac

$ brew install python3

Example 6: install pip

python -m pip download [options] <requirement specifier> [package-index-options] ...
python -m pip download [options] -r <requirements file> [package-index-options] ...
python -m pip download [options] <vcs project url> ...
python -m pip download [options] <local project path> ...
python -m pip download [options] <archive url/path> ...