Since python3
is the default python version in Ubuntu 18.04 and python2
won't be shipped by default on a fresh Ubuntu 18.04 installation, how can I make python3
default after an upgrade to Ubuntu 18.04 (from 16.04). Currently, after the upgrade to python2
it still defaulted (e.g. python
command directs to python2
etc.). However, purging the python
package will result in removing too many packages that rely on it, so this is not an option here.
Ideally, I want to remove the python2
dependency as much possible. Maybe the upgrade process could be designed in such a way that it checks all packages, whether they still really rely on python2
dependencies and thereby collect all python2
dependencies that could be replaced by an equivalent python3
dependency (which will be resolved by the upgrade then).