Results 1 to 5 of 5

Thread: How to move to Python3.7 as default

  1. #1
    Join Date
    Jan 2014
    Location
    Perth
    Posts
    35

    Default 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.

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,254
    Blog Entries
    2

    Default Re: How to move to Python3.7 as default

    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
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: How to move to Python3.7 as default

    Quote Originally Posted by snow365 View Post
    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.
    If you need Python for any programming purposes, why not using Anaconda independent to what has been installed on your distro?

  4. #4
    Join Date
    Jan 2014
    Location
    Perth
    Posts
    35

    Default Re: How to move to Python3.7 as default

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

  5. #5
    Join Date
    Apr 2016
    Location
    North America
    Posts
    537

    Default Re: How to move to Python3.7 as default

    You could try adding this repository
    https://download.opensuse.org/reposi...USE_Leap_15.0/
    and installing from it.

    I did something similar on Leap 42.3 with python3.6
    https://forums.opensuse.org/showthre...on-3-6-on-leap

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •