Skip to content

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

Open
@inhahe

Description

@inhahe

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions