That's why any good tutorial on Python for Windows recommend using the "py -x.y" command, and not the "python" command.
TIL about the py command, and I've been using Python on Windows for many years now. Thanks!
That is how PATH works. An installer would have to be doing something seriously wonky to get that wrong.
IMO installer should check existing PATH and warn user that this installation will change his python executable.
They could have used another mechanism than PATH.
bash does exactly that - it has command_not_found_handle function and distributions define it, so they can offer package installation for any command not found.
Re:Python in the Windows 10 May update
by mwcampbell on Friday June 07, 2019 @10:23AM
(#20124785)
Yep, I ran into this some months ago with an insider build. IIRC though, I had manually added Python to my PATH. So I just adjusted the order and kept using my existing Python install.
[1] https://devblogs.microsoft.com/python/python-in-the-windows-...