-
Notifications
You must be signed in to change notification settings - Fork 41
Description
Installed from the Windows Store
Version: 26
Windows 11
Describe the bug
Python Install Manager fails to fully uninstall Python versions. The uninstall process removes the main directory but leaves behind shortcuts, registry entries (the program remains listed in Windows "Uninstall or change a program"), and throws an internal AttributeError at the end of the process.
Actual Behavior:
C:\Windows\System32>py uninstall 3.12
Uninstall Python 3.12.10? [Y/n] y
Removed Python 3.12.10
[ERROR] INTERNAL ERROR: AttributeError: 'UninstallCommand' object has no attribute 'enable_entrypoints'
After the process completes:
C:\Users<username>\AppData\Local\Python — Python files are removed ✅
Desktop/Start Menu shortcuts — still present ❌
Windows "Uninstall or change a program" entry — still present ❌
Expected Behavior:
A complete uninstall should remove all associated files, shortcuts, and registry entries without any internal errors.
Additional Context:
The same incomplete uninstallation occurs when using the standard Windows uninstaller via "Uninstall or change a program" - not just via py uninstall. This suggests the issue is systemic to how the Install Manager registers and cleans up components.
One possible workaround is to run py uninstall --purge. This isn’t really a proper solution (since this command removes all installed Python runtimes), but after running it all leftover traces were removed from the computer (shortcuts and entries in Uninstall or change a program). After that, I had to reinstall the Python runtimes I needed.