Eryk Sun <eryk...@gmail.com> added the comment:

The shebang "#!/usr/bin/env python" searches PATH for 
"python" plus the PATHEXT file extensions.

The shebang "#!/usr/bin/env python3" uses the highest version of Python 3 from 
the registry. It doesn't search PATH because Python installations do not 
necessarily include "python3.exe" or "python3.x.exe" binaries. Alternatives 
that also search PATH for this case have been discussed in prior issues.

----------
nosy: +eryksun

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46002>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to