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
Failed to call python after install python3.12 via python installer #118879
Comments
Add additional information about it. If we try to use the python wrapper in C:\Windows\py.exe, we can perform py in cmd.exe, it will find our installed python. But I think this sounds most like a workaround, or it is expected behavior for Python usage? Thanks. |
I suspect you've hit the Windows bug that duplicates the PATH entry for If you dig into your registry settings you'll find that the path is listed differently in two different places. The per-user location is the one you want to keep. |
This comment was marked as resolved.
This comment was marked as resolved.
Note that the image shown is for the system That said, I think if they actually installed fresh via |
When I tested an update earlier, the installer updated the system Running |
Thanks all for your help and closing the issue. |
I spent far too long investigating it, and I'm 99% sure the cause is a combination of another installer reading the HKLM PATH as Basically, nobody should be touching PATH through an installer, and hopefully one day [I will convince] Windows to give us better ways to manage global aliases. Footnotes
|
Thanks a lot for your precious time @zooba |
Bug report
Bug description:
Env: Win10-64 OS
Python installer version: python3.12.0
How to reproduce the issue:
After the installation finished, perform python in windows cmd.exe, then cmd will raise an popup to reminder us to install python from Microsoft Store,It means that the Windows OS does not have python installed.
Checked the environment variable, there is no python related setting, maybe the installer failed to set up during the installation pharse.
Not sure if it is a bug for the installer or my step is wrong,could anyone help to check it?Thanks in advance!
CPython versions tested on:
4.12
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: