pip install for python 2.7 code example
Example 1: pip install for python 2 and python3
$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python3.2 get-pip.py
Example 2: install packages with pip from python
pip3 install <package_name>
Example 3: pip upgrade python
pip freeze | %{$_.split('==')[0]} | %{pip install --upgrade $_}