Skip to content

Python installation gutted my Python directory, now gives me a fatal error. No idea how to install Python now. #135159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
inhahe opened this issue Jun 5, 2025 · 1 comment
Labels
type-bug An unexpected behavior, bug, or error

Comments

@inhahe
Copy link

inhahe commented Jun 5, 2025

Bug report

Bug description:

I've had a problem for years where every time I install a new version of Python into a new directory using the .exe installer from python.org, the installer deletes all the main Python files, such as the .exe's, etc., from the previous installation's directory. I don't usually try the upgrade option instead, but I tried it just now because I didn't want to have to reinstall my libraries, and the installer simply deleted all the main Python files from the current Python directory, leaving me with no working installation of Python.

When I tried running the installer again, I only got the options repair, modify, and whatever, so I tried uninstalling Python and then reinstalling it to a new directory. That just gave me a fatal error, 0x80070643, when trying to reinstall it. I tried looking that up for help, but what I found wasn't very helpful. So, now I have no working Python installation (well, I may have earlier versions kicking around, assuming previous installations didn't gut them all, but I want 3.13) and no way to install it.

Here are the contents of Python 3.13.4 (64-bit)_20250605021922.log, which for some reason the installer put into one of my Visual Studio Python project directories, or at least that's the log the error dialog linked to:

Python 3.13.4 (64-bit)_20250605021922.log

Edit: I just tried rebooting and installing again, and this time it went further but then I got a different error: 0x80070659 - This installation is forbidden by system policy. Contact your system administrator.
Edit 2: I ran the installer as administrator this time and it worked. I'm still leaving this bug report here, though, as I was unable to to do an upgrade, and also new installations shouldn't delete the contents of previous installations. And not to mention that giving a fatal error because I didn't reboot the computer when I wasn't told to isn't ideal, either, and nor is requiring the user to run as admin without telling them that. =P

CPython versions tested on:

3.13

Operating systems tested on:

Windows

@inhahe inhahe added the type-bug An unexpected behavior, bug, or error label Jun 5, 2025
@mokko
Copy link

mokko commented Jun 6, 2025

As long as I can remember Python requires administrator rights on Windows for normal installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants