I am trying to reinstall Python, so I go control panel > uninstall > Python 3.6.2
. It succeeds, but when I try to download 3.6.*
, it says that I can't download because there is already a version of Python3 installed.
I tried to clean the registry, deleted all files named "Python", but still see the error. I even deleted the path Python in PATH
.
The Python setup may fail if you don't have Windows Service Pack 1 (SP1) installed on your computer. It is a requirement for installing Python. Download Windows Service Pack 1. If it states an unspecified error, try downloading KB2999226.
When installing Python on Windows, select the “Customize installation” option during setup. In the next screen, make sure the “py launcher” option is checked. When you type py at the command line, the launcher will invoke the current default Python interpreter.
This may be a silly solution, but for me the issue was the Python Launcher
still listed in the apps list after the uninstall. Uninstalled it separately, afterwards reinstalled Python without the error.
The installer/uninstaller does not do a good job of cleaning up after itself (and that's being generous). What worked for me:
Program Files
and Users\<username>\AppData
Computer\HKEY_CLASSES_ROOT\Installer\Features
for any values with python, then delete the containing key. The key names are things like "03CEBFB8CC334B3148F9B330F67264A6" (that's an example, not an actual one, since the actuals I deleted)#3 is the one that actually got it past the hurdle, but #1 and #2 should be done anyway.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With