-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Python 3.12.3 installer fails to install py.exe #118347
Comments
My py.exe is 3.13.104.1013 dated 2.15.2024, when I installed 3.13.0a5. It was not replaced when I installed 3.13.0a6 and 3.12.3 3 weeks ago. I presume because it was not changed. |
Clearly it's not detecting the existing install like it is supposed to, because you have a per-machine install which ought to be changing to also do a per-machine install instead of the admin-free default. If you can, it would be helpful to see the log files created in @terryjreedy - the launcher is versioned independently from CPython, though the numbers happen to match. But it means that the one installed with 3.13 is "newer" than the one with 3.12 and won't be downgraded. It should have been upgraded for alpha 6 though, so that might be another issue. If you've got your log file still, that would be great to see. For both of you, in this case, we only need the main log file (all the other ones have longer names than the main file). If you're unsure, a zip file with all the |
@zooba, Again, I am using Windows 10 on a machine that is kept up to date. I uninstalled 3.12.3 using "Add/Remove Programs" and removed all %TEMP% log files for that version, just to make sure that I have a clean set of files. I reran the installer and picked "Install Now" ("Use admin privileges when installing py.exe" is selected but "Add python.exe to PATH" is not). Again, it did NOT prompt for admin login and I got "Setup was successful". In a Windows command shell, I get the following (it lists 3.12 now but I don't think it did when going from 3.7 to 3.12, but I also have 3.9.2 installed now).
Attached is the main log file as requested. |
Okay, it looks like when we fixed installs breaking due to mixed launcher installs I changed the meanings of some variables without updating all the other users of them. Should be a straightforward fix. |
In the meantime, if you want the launcher that comes with 3.12.3, you can get it from https://www.python.org/ftp/python/3.12.3/win32/launcher.msi and double-click to install it directly (or run |
…H-118386) (cherry picked from commit 96d8ca7) Co-authored-by: Steve Dower <[email protected]>
Fix is in and backporting to 3.12. |
(cherry picked from commit 96d8ca7) Co-authored-by: Steve Dower <[email protected]>
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
andpy --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 installpy.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 topy.exe
and theC:\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 andpy.exe
shows the3.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 thepy.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
The text was updated successfully, but these errors were encountered: