Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more
J.O. Aho
user at example.net
Fri Dec 22 09:00:37 EST 2023
On 22/12/2023 13.36, Sibylle Koczian wrote:
> Hello,
>
> I always install Python on Windows in the same manner:
>
> - Python is not on the path,
> - it is installed for all users,
> - the Python Launcher is installed for all users,
> - the file types .py, .pyw etc. are associated with Python.
>
> My shebang line is usually "#!/usr/bin/env python3".
Disable BOM in your editor and re-save all files.
--
//Aho
More information about the Python-list
mailing list