[Python] Error trying to install Python 3.13 alongside existing Python 3.9 installation -...

Discussão em 'Python' iniciado por Stack, Março 12, 2025.

  1. Stack

    Stack Membro Participativo

    Windows 10 system. I have Python 3.9 installed in a user (non-admin) account. I'm trying to install Python 3.13 alongside 3.9. During install, I select 'Add python.exe to PATH' and select 'Customize installation', where all options are enabled on first screen except for 'for all users (requires admin privileges)'. On second screen, 'associate files with Python', 'create shortcuts', and 'add Python to environment variables' are enabled.

    Installation runs, then at the end, it throws error '0x80070659 - This installation is forbidden by system policy.'

    The logfile shows several registry errors. When looking in regedit, none of these registry keys actually exists.

    When I look inside the logfile, it appears this is the issue:

    • Error 0x80070659: Failed to install MSI package.
    • Error 0x80070659: Failed to configure per-user MSI package.
    • Applied execute package: launcher_JustForMe, result: 0x8007065

    I am able to install it when logged in as admin, but that's not where I want it, and also, Python 3.9 was installed to user account, so I don't understand why I cannot install 3.13 to user account as well.

    I tried the solution suggested here, but no change: https://answers.microsoft.com/en-us...idden-by/56bddf92-1e53-4513-9adc-254be1f061ef

    Update: I was able to install Python 3.12. Seems the difference is 3.12 installer showed python launcher as already installed (as mentioned, I have Python 3.9 previously installed in this user account), while 3.13 did not show python launcher as already installed.

    I'd prefer to have 3.13, so the question is still relevant if anyone knows what the issue is, thanks.

    Continue reading...

Compartilhe esta Página