5 ms·
Python 3 is the default in 16.04 LTS.
by teekert 10y ago
Python 3 is the default in 16.04 LTS.
- deleted 10y ago[deleted]
- 2T1Qka0rEiPr 10y agoI just posted that my default Python is 2 and I'm on 16.04.1, but I suppose the upgrade from 15.10 perhaps left the default as-is?
- teekert 10y agoI think the fact that python points to python 2 and python3 points to python 3 does not mean one is default and the other is not. One would think so, yes, but this is a bit of difficult case, for historic reasons. Both versions will need to be present because many things depend on 2 still (ufw for one I believe), python 2 was just there first and hence earned the badge "python". To now switch to explicitly calling it python2 and calling python 3 python would break many things probably. On a clean 16.04 install, python 3 is present, python 2 is not, however, you still need to call python 3 with "python3" [0] [0] https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#Python_3 https://wiki.ubuntu.com/XenialXerus/ReleaseNotes#Python_3 Edit: See qznc's remark on the pep, apparently it's even advised the keep "python" pointing to python 2.
- dagw 10y agoI suppose the upgrade from 15.10 perhaps left the default as-is? Yes. If you do a clean install of 16.04 then you won't python2 installed at all.
- kikoreis 10y agoMore explicitly, a standard installation of Ubuntu only depends on (and leaves installed) Python 3: $ lxc launch ubuntu:16.10 yakkety [...] $ lxc exec yakkety python || echo no py2 no py2 Python 2 is still available via a package, and in the main repository, which is what we track to deliver security (and critical bugfix) updates for. But we definitely see the importance of moving the ecosystem along -- despite the historical complexity of the transition, and the challenge in getting people to move from their comfort zone.