To upgrade pip on Windows, follow these steps:
- Open Command Prompt:
- Press
Windows + R
to open the Run dialog. - Type
cmd
and press Enter.
- Press
- Check your current pip version (optional): In the Command Prompt, type:
pip --version
This will show the current version of
pip
. - Upgrade pip: Run the following command to upgrade
pip
to the latest version:python -m pip install --upgrade pip
This command ensures that
pip
is updated to the newest version. - Verify the upgrade: Once the upgrade is complete, you can check the version again by typing:
pip --version
This should show the updated version.