UNVERSIONED-PYTHON(8) System Manager's Manual UNVERSIONED-PYTHON(8)
NAME
unversioned-python - info on how to set up the `python` command.
SYNOPSIS
unversioned-python
DESCRIPTION
unversioned-python The "unversioned" `python` command (/usr/bin/python)
is missing by default. We recommend using `python3` or `python2`
instead. If using the explicit versioned command is inconvenient, you
can use `alternatives` to configure `python` to launch either Python 3
or Python 2.
Note: The `python3` or `python2` package needs to be installed before
its functionality is selected.
EXAXPLES
alternatives --config python
Interactively select what the `python` command runs.
alternatives --set python /usr/bin/python3
Configure the `python` command to run Python 3
Note: this is non-standard behavior according to [PEP 394].
alternatives --set python /usr/bin/python2
Configure the `python` command to run Python 2
Note: please review the support lifecycle of python2 before relying
on it
alternatives --auto python
Undo configuration changes and revert to the default (missing
`python` command)
LINKS
[PEP 394]: https://www.python.org/dev/peps/pep-0394/
17 September 2018 UNVERSIONED-PYTHON(8)