How to manage python shebang on mixed systems?

Chris Angelico rosuav at gmail.com
Mon Nov 7 14:29:14 EST 2022


On Tue, 8 Nov 2022 at 06:12, Thomas Passin <list1 at tompassin.net> wrote:
>
> The problem is that some Linux systems - I think - still use Python2 to
> perform various system-related tasks.  When they call "python", they
> need it to be Python2.  If someone has a system like that, they can't
> have the "python" command run Python3.
>

If currently-supported versions of any Linux distributions don't at
least make a python3 command available, I would be very surprised. But
when you don't have root access, it's not easy to install, even from
repositories.

ChrisA


More information about the Python-list mailing list