install pip for python 2.7 code example

Example 1: installing pip

python -m pip install --upgrade pip

Example 2: linux install pip

apt-get install python-pip	#python 2
apt-get install python3-pip	#python 3

Example 3: install pip

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

Example 4: pip installer for mac

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

Example 5: 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

Example 6: how to install python libraries

python -m pip install SomePackage