On Thu, 26 Mar 2020 at 15:52, Barry Scott barry@barrys-emacs.org wrote:
On 25 Mar 2020, at 16:53, Paul Moore p.f.moore@gmail.com wrote:
On Wed, 25 Mar 2020 at 16:10, Eryk Sun eryksun@gmail.com wrote:
The py launcher's "env" command searches PATH for anything from "python" to "notepad" -- but not for a versioned Python command such as "python3" or "python2". It always uses a registered installation in this case, which is at the very least problematic when using "#!/usr/bin/env python3" in an active virtual environment. Paul Moore will probably suggest that the script should use "#!/usr/bin/env python" instead,
Nope, I agree with your point about that running 2.x on Unix.
At least on Fedora python is python3 now.
On Centos 8 there is no python until you use the alternatives mechanism to set it as python2 or python3.
... which is probably more evidence in favour of some sort of point, but at this stage I have no idea what, unless it's "nothing is consistent and you need to be prepared to deal with cross-platform differences" :-)
Paul