8

When I run winget list python I get that Python.Python.3 is installed by winget; however, running python says the executable is missing.

winget uninstall --id Python.Python.3 runs the uninstaller but the uninstaller halts and does not complete.

Is there a way to force the complete removal of a corrupted winget package installation?

treedust
  • 313

1 Answers1

11

Summary: winget thought Python.Python.3 was still installed because of a regedit key sticking around, hence why winget list python reports it being installed. The uninstaller was a remnant from a previously malformed uninstallation (most likely from the same reason a regedit key was still existing).

Solution: Removing the Python.Python.3 package's Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall regedit (Registry Editor) key resulted in allowing to re-install the package via winget install --id Python.Python.3.

treedust
  • 313