get-pip.py for python 2.7 code example
Example 1: installing pip
python -m pip install --upgrade pip
Example 2: pip installer for mac
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python -m pip install --upgrade pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py