Skip to content

pip uninstall failing on Windows 10 #8274

Closed
@Awful-Leo

Description

@Awful-Leo

Environment

  • pip version: latest from Python.org as of 2020-0520-1850
  • Python version: 3.8.3
  • OS:Windows 10

Description

  1. Download the latest version of python (together with pip) from python.org.
  2. update pip in cmd with "pip install pip -U"
  3. pip downloads the latest pip (ver 20.1?), then starts uninstalling my local pip(successful), and tries to install the just-downloaded version. Oops! no permission! Then I open up another cmd window with admin permission, and run "pip install pip -U". No! Because "No module named 'pip'".

Expected behavior

When uninstalling pip, temporarily stores the old pip to a temp folder maybe. If the installing of the newer version is successful, delete the temp file; if not, roll back and reinstall the original version.

How to Reproduce

Follow the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: uninstallThe logic for uninstallation of packagestype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions