Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #10703
| From | Ben Finney <bignose@debian.org> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Safest way to set python3 as default for `python` |
| Date | 2018-07-18 03:40 +0200 |
| Message-ID | <wcJBE-7ht-3@gated-at.bofh.it> (permalink) |
| References | <wc6qC-10o-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Bastian Venthur <venthur@debian.org> writes: > sorry if this question has been asked before. What is the currently > recommended way to make `python` point to `python3`? I'd like to have > it set on a system default level if possible. At a system default level, in Debian, the command ‘python’ (if it is installed) invokes the default Python 2 interpreter. Based on existing discussions I am confident there will not be a recommendation for a ‘python’ command to invoke anything except the default Python 2 interpreter, until long after Debian ceases support for Python 2 — and there is no current plan to drop Python 2 support in Debian. If you want a ‘python’ command at the system default level with different behaviour from that today, that's going against recommendations so I think you won't find a recommended way to have different behaviour. To have a command with custom behaviour, the recommendation is the general one: put an executable file at ‘/usr/local/bin/python’ with whatever behaviour you want. -- \ “But Marge, what if we chose the wrong religion? Each week we | `\ just make God madder and madder.” —Homer, _The Simpsons_ | _o__) | Ben Finney
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Safest way to set python3 as default for `python` Bastian Venthur <venthur@debian.org> - 2018-07-16 09:50 +0200
Re: Safest way to set python3 as default for `python` Matthias Klose <doko@debian.org> - 2018-07-16 13:30 +0200
Re: Safest way to set python3 as default for `python` Bastian Venthur <venthur@debian.org> - 2018-07-16 17:20 +0200
Re: Safest way to set python3 as default for `python` Ben Finney <bignose@debian.org> - 2018-07-18 03:40 +0200
Re: Safest way to set python3 as default for `python` Stuart Prescott <stuart@debian.org> - 2018-07-18 11:10 +0200
Re: Safest way to set python3 as default for `python` Brian May <bam@debian.org> - 2018-07-19 09:30 +0200
Re: Safest way to set python3 as default for `python` Dimitri John Ledkov <xnox@ubuntu.com> - 2018-07-18 14:10 +0200
csiph-web