Python.exe System Error missing python.dll

Anyone have any ideas for how to help resolve this? I’m getting the exact same issues. I’ve tried uninstalling/reinstalling and restarting my computer multiples times. This happens when I try to install as admin (for all users) or just for my user. I’m downloading the official version (python-3.12.0-amd64.exe) from python.org.
Nothing’s worked!

If it may provide any context: I was previously getting a different error

Error 0x80070643: Failed to uninstall MSI package.
Error 0x80070643: Failed to configure per-user MSI package.
Error 0x80070643: Failed to execute MSI package.`

and I’m not sure what changed that now it’s become this one, where the dialog pops up with a failure message (that the dll is missing) but then I see the “Successfully installed” screen. However, any attempts to use Python fail due to the missing dlls.

It may have something to do with some corrupted Registry keys maybe? Any thoughts about how to fix that if it’s related? I also had tried installing via winget – don’t know if that may be related.