1UNVERSIONED-PYTHON(8)       System Manager's Manual      UNVERSIONED-PYTHON(8)
2
3
4

NAME

6       unversioned-python - info on how to set up the `python` command.
7

SYNOPSIS

9       unversioned-python
10

DESCRIPTION

12       unversioned-python The "unversioned" `python` command (/usr/bin/python)
13       is missing by default.   We  recommend  using  `python3`  or  `python2`
14       instead.   If using the explicit versioned command is inconvenient, you
15       can use `alternatives` to configure `python` to launch either Python  3
16       or Python 2.
17
18       Note:  The  `python3` or `python2` package needs to be installed before
19       its functionality is selected.
20
21

EXAXPLES

23       alternatives --config python
24
25           Interactively select what the `python` command runs.
26
27
28       alternatives --set python /usr/bin/python3
29
30           Configure the `python` command to run Python 3
31
32           Note: this is non-standard behavior according to [PEP 394].
33
34
35       alternatives --set python /usr/bin/python2
36
37           Configure the `python` command to run Python 2
38
39           Note: please review the support lifecycle of python2 before relying
40       on it
41
42
43       alternatives --auto python
44
45           Undo  configuration  changes  and  revert  to  the default (missing
46       `python` command)
47
48
49
51       [PEP 394]: https://www.python.org/dev/peps/pep-0394/
52
53
54
55
56                               17 September 2018         UNVERSIONED-PYTHON(8)
Impressum