how to instll pip code example Example 1: installing pip python -m pip install --upgrade pip Example 2: how to install pip python -m ensurepip