upgrade pip install pip code example Example 1: python update pip3 pip3 install --upgrade pip Example 2: upgrade pip python -m pip install --upgrade pip