
On Mon, Jan 30, 2023, at 10:00 PM, Ned Deily wrote:
Sorry for the delayed response, I just ran across your enquiry. The issue here is that you need to invoke Python with the command `python3`. For historical reasons, the command `python` was reserved for invoking earlier versions of Python, most recently Python 2.7, during the decade-long transition period when both Python 2 and Python 3 were often installed on the same system. Now that Python 2 has been officially retired and no longer being installed by default on most modern systems (regardless of operating system), it might be time to reassess that recommendation; another option might be to now provide a `python` alias or link to a reminder message. The Python docs working group is planning to discuss this issue in the near future.
To put some more information to this, various Linux distributions have already changed `/usr/bin/python` to refer to `python3`. I find that this was well documented in the Fedora change proposal [1] including what other distributions have done so far. Regards, Simon [1]: https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3#Detailed_Desc...