Skip to content

Python 3.12.3 installer fails to install py.exe #118347

Closed
@smalers

Description

@smalers

Bug report

Bug description:

I use Python with MkDocs and had needed to update my environment on a Windows 10 machine that only had Python 3.7. I installed version 3.12.3 since it is the latest stable at the time. I used all the default settings. Afterwards, I ran py --version and py --list and it does not show the latest installation. I thought I must have missed something so I uninstalled 3.12.3 and reinstalled, being careful that the box to install py.exe is checked. The installer does not ask for admin permissions. I can run 3.12.3 in its shell via the Start menu, but it is not known to py.exe and the C:\Winddows\py.exe executable file has a really old date. I then installed Python 3.9.2 because that is consistent with a Linux environment that I use on another machine. Installing with the default settings, the installer askes for admin permissions and py.exe shows the 3.9-64 version and has a newer date consistent with the installer. It seems to me that the 3.12.3 installer is not handling the py.exe installation correctly. I see some other issues related to the installer but not this specific issue, as far as I can tell.

CPython versions tested on:

3.9, 3.12

Operating systems tested on:

Windows

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-windowstype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions