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