download pip for python 2.7 in mac code example
Example 1: pip installer for mac
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
Example 2: how to install pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
#Once you do that, enter line 3 inside
python get-pip.py