python 2 pip install how code example Example 1: installing pip python -m pip install --upgrade pip Example 2: pip install python get-pip.py