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