how to update pip

Discussion RoomCategory: Pythonhow to update pip
Ashly asked 1 year ago

Updating Pip:
Pip is the package installer for Python. To update Pip, follow these steps:
First, make sure you have the latest version of Pip installed. Open your terminal and run the following command:

python -m ensurepip --upgrade

Or if you’re using Python 3.x:

python3 -m ensurepip --upgrade

After ensuring you have the latest Pip version, use Pip to update itself:
For Windows:

python -m pip install --upgrade pip

For macOS and Linux:

python3 -m pip install --upgrade pip

Note: On some systems, you might need to use pip3 instead of python3 -m pip.
3. Verify Updates:
After updating, verify that Pip at their latest versions:


pip --version

Make sure the reported versions match the latest available versions.

Scroll to Top