Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

Thomas Passin list1 at tompassin.net
Mon Jan 15 19:24:44 EST 2024


On 1/15/2024 6:27 PM, Greg Ewing via Python-list wrote:
> On 16/01/24 11:55 am, Mats Wichmann wrote:
>> Windows natively has something called python.exe and python3.exe which 
>> is interfering here
> 
> I'm wondering whether py.exe should be taught to recognise these stubs
> and ignore them. This sounds like something that could trip a lot of
> people up.

There are registry entries that say where all the python.org install 
locations are.  I suppose, but don't know, that py.exe checks them.  The 
registry entries are inComputer\HKEY_CURRENT_USER\SOFTWARE\Python\PythonCore



More information about the Python-list mailing list