classification
Title: Python 3.10 final installation failure
Type: crash Stage:
Components: Installation, Windows Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, steve.dower, terry.reedy, tim.golden, wyz23x2, zach.ware
Priority: normal Keywords:

Created on 2021-10-10 01:08 by wyz23x2, last changed 2021-10-18 11:06 by steve.dower.

Files
File name Uploaded Description Edit
new_install_log.log wyz23x2, 2021-10-10 01:08
old_modify_log.log wyz23x2, 2021-10-10 01:10
screenshot.png wyz23x2, 2021-10-17 01:58
Messages (9)
msg403566 - (view) Author: wyz23x2 (wyz23x2) * Date: 2021-10-10 01:08
Hi, I've downloaded Python 3.10 final (64-bit) from python.org on October 6. But when I run the installer with administrator permission, it says "No Python 3.10 installation was detected". Error code: 0x80070643. The stranger thing is when I run "repair" from the 3.10rc2 installer, it's the same message & code; but, if "modify" is run, the window is "A newer version of Python 3.10 is already installed", error code same. Thanks for help.
msg403567 - (view) Author: wyz23x2 (wyz23x2) * Date: 2021-10-10 01:10
Note: I'm trying to move the installation path from Local\Programs\Python\Python310 under user dir to C:\Program Files\Python310.
msg403969 - (view) Author: wyz23x2 (wyz23x2) * Date: 2021-10-15 02:43
 
msg404071 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-10-16 11:43
Did you delete the old installation in the old location first?
msg404092 - (view) Author: wyz23x2 (wyz23x2) * Date: 2021-10-16 16:03
I did.
msg404093 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-10-16 16:13
You probably need to also select the "Install for All Users" checkbox, rather than just updating the target path. Running as admin *technically* gives you the ability to write to those locations, but it also implies that nobody except Admin should be able to access it. Choosing the proper option should do it correctly.

This kind of issue can also arise when you directly delete the install, rather than uninstalling it. Best thing to do if you can is to run a repair through the Add Remove Programs entry, and then uninstall it (this is because ensurepip needs a working install to uninstall itself... not ideal, but that's how it was added). Then you should be able to do the proper install.

However, if it was previously installed for All Users, then switching the option in your new install might be able to handle it. Trying to upgrade from per-user to all users seems to hit issues sometimes.
msg404123 - (view) Author: wyz23x2 (wyz23x2) * Date: 2021-10-17 01:58
I'm sorry, but the option is grayed out. See attached screenshot.
msg404124 - (view) Author: wyz23x2 (wyz23x2) * Date: 2021-10-17 02:11
> This kind of issue can also arise when you directly delete the install, rather than uninstalling it.
Sort of, but I expected upgrading with a new directory to work. When the first few times didn't work, I deleted the installation directly (should have uninstalled it). :(
> Best thing to do if you can is to run a repair through the Add Remove Programs entry, and then uninstall it (this is because ensurepip needs a working install to uninstall itself... not ideal, but that's how it was added). Then you should be able to do the proper install.
Running from the Add Remove Programs entry prompts for admin access. (Is there a way to do that in Control Panel?) Directly running "repair" in the rc2 installer with admin says "No Python 3.10 installation was detected", error code: 0x8007064. (Same error message & code when running 3.10 final installation.)

Sorry if the problem is complicated.
msg404175 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-10-18 11:06
It's not really complicated, it's just a little difficult to find the right files you need.

> Running from the Add Remove Programs entry prompts for admin access.

Which clearly shows it was previously installed by an admin, and so you'll need that to remove/repair/upgrade it properly. If you aren't an administrator on your machine, you'll need to find out who is and ask them to do it.

> Directly running "repair" in the rc2 installer with admin says "No Python 3.10 installation was detected"

This generally means you need a different copy of the installer. There should only be 32-bit and 64-bit ones floating around, but it may be that you actually need RC1 and not RC2? They are all subtly different (most notably in their primary UUID ;) ) and won't repair each other (which would be an upgrade/downgrade, which should work when you haven't deleted all the files manually).

Otherwise, there used to be tools out there that could delete all the registrations in the Windows installer database, but I haven't had to use one in years and I have no idea which would work well. If you can remove all the registration entries (which you can't do by hand, trust me, you need a clever tool) then you should be able to install a new version without hitting these issues.
History
Date User Action Args
2021-10-18 11:06:07steve.dowersetmessages: + msg404175
2021-10-17 02:11:38wyz23x2setmessages: + msg404124
2021-10-17 01:58:20wyz23x2setfiles: + screenshot.png

messages: + msg404123
2021-10-16 16:13:00steve.dowersetmessages: + msg404093
2021-10-16 16:03:27wyz23x2setmessages: + msg404092
2021-10-16 11:43:56terry.reedysetnosy: + terry.reedy
messages: + msg404071
2021-10-15 02:43:32wyz23x2setmessages: + msg403969
2021-10-10 01:10:30wyz23x2setfiles: + old_modify_log.log

messages: + msg403567
2021-10-10 01:08:28wyz23x2create