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

Description

I’m using Python 3.10.5 and having PIP 22.2.1 and while updating PIP to latest Version 22.2.2 ValueError raises and its not updating PIP image

Expected behavior

No response

pip version

22.2.1

Python version

3.10.5

OS

Windows 10

How to Reproduce

  1. Open Console and Run
  2. python -m pip install --upgrade pip

Output

No response

Code of Conduct

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 20 (11 by maintainers)

Most upvoted comments

This fixed the problem for me under Windows 11, running Python 3.11.4, from PowerShell:

python -m pip uninstall pip setuptools python -m ensurepip --upgrade python.exe -m pip install --upgrade pip setuptools

@anoban To recover, you can delete the following directories:

  • C:\Program Files\Python311\Lib\site-packages\pip
  • C:\Program Files\Python311\Lib\site-packages\pip-(something).dist-info
  • C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip
  • C:\Users\Anoban\AppData\Roaming\Python\Python311\site-packages\pip-(something).dist-info

And then fetch and run get-pip.py as described in https://pip.pypa.io/en/stable/installation/#get-pip-py.