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

Mats Wichmann mats at wichmann.us
Tue Jan 2 11:56:54 EST 2024


On 1/1/24 12:53, Thomas Passin via Python-list wrote:

> On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if 
> invoked by the script name alone) or Python 3.12.1 (if invoked by the 
> "py" launcher).

fwiw, you can also create an ini file to define to the launcher py which 
version should be the default, if no version is specified.





More information about the Python-list mailing list