pip install python 2.7 code example

Example 1: linux install pip

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

Example 2: pip installer for mac

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

Example 3: python pip install

## To install Pip, first download get-pip.py from:
https://bootstrap.pypa.io/get-pip.py
  
## Then run the following command in the command line
## in the folder where the file has been saved.
python get-pip.py

Example 4: pip install for python 2 and python3

$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.2 get-pip.py