How to move to Python3.7 as default

The only thing I can find on this, is from 2017 by Todd Rme - said what was going to happen to achieve this then the thread dies with no follow up.
Seeing as python3 is well past the mature decade and for at least 5 of them years has been the undisputed front-runner, I would like to do what I’ve been wanting for more than 5 years - ditch 2.7 (or at least back seat it for obseletion) and default 3.7.
Unfortunately I can’t find any way to do this, so I’m assuming it still can’t be done.
If anyone knows whether it can be done and, if so, how to do it, I would be appreciative.
I’m using 15.0 - looking to update to 15.1 in the next two weeks.

Both LEAP 15.0 and 15.1 currently support both Python 2 and Python 3 because a very large number of apps are written in both, I don’t see Python 2 being deprecated any time soon even today.

As for defaults, there is no default choice between those two… Only default versions within each and as of today both LEAP 15.0 and 15.1 support python 3.6.5, not yet 3.7 as the current default version. Python 3.7 can be installed from a home repository (someone’s own, not a large community)
https://software.opensuse.org/package/python3

You can submit a feature request if you like to https://bugzilla.opensuse.org for an official openSUSE distribution of python 3.7 if you wish since it was released in June 2018… I personally do no know why openSUSE LEAP has not yet moved to python 3.7.

It does look like the Tumbleweed default version of python3 is 3.7.2.

Or, you can use virtualenv and download Python 3.7 from the official python repositories.

TSU

If you need Python for any programming purposes, why not using Anaconda independent to what has been installed on your distro?

1 Like

Thank you Tsu,
this put me on track to learn how Opensuse was handling 2->3 (very neat).
Your help was much appreciated.

You could try adding this repository
https://download.opensuse.org/repositories/devel:/languages:/python:/Factory/openSUSE_Leap_15.0/
and installing from it.

I did something similar on Leap 42.3 with python3.6
https://forums.opensuse.org/showthread.php/529448-installing-python-3-6-on-leap