Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pip upgrade issue using python -m pip install --upgrade pip

Recently, I've been trying to upgrade my pip using the following command:

python -m pip install --upgrade pip

the process goes as follows:

Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
     |████████████████████████████████| 1.5 MB 1.7 MB/s
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 20.3.3
    Uninstalling pip-20.3.3:
      Successfully uninstalled pip-20.3.3
  Rolling back uninstall of pip

Then a bunch of Moving to lines start to appear, then comes the error:

ValueError: Unable to find resource t64.exe in package pip._vendor.distlib

What am I suppossed to do ???


1 Answers

This is likely an issue with the pip installation. You can fix it using the following steps:

  1. Uninstall the current pip:

    python -m pip uninstall pip setuptools
    
  2. Download get-pip.py from https://bootstrap.pypa.io/get-pip.py

  3. Run the get-pip script:

    python get-pip.py
    

Alternatively you can use, but it isn't recommended:

easy install --upgrade pip
like image 96
DapperDuck Avatar answered Jan 28 '26 16:01

DapperDuck