Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: installing python 3.6 on leap

  1. #1
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default installing python 3.6 on leap

    What's the recommended way to install python 3.6+ on Leap?

  2. #2

    Default Re: installing python 3.6 on leap

    Upgrading to Leap 15...


    The latest python is available in the devel:lang:python:Factory repo for Leap 42.3 as well though:
    https://download.opensuse.org/reposi...USE_Leap_42.3/

    Updated python modules are available in devel:lang:python:
    https://download.opensuse.org/reposi...USE_Leap_42.3/

    I cannot tell you whether replacing the system's python3 would be a good idea or might rather cause problems though.
    Last edited by wolfi323; 01-Feb-2018 at 13:58. Reason: remove unwanted smilies

  3. #3
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: installing python 3.6 on leap

    Thanks.

    What is Leap 15, compared with Leap 42.3?
    I don't understand the difference in numbering.

  4. #4

    Default Re: installing python 3.6 on leap

    Quote Originally Posted by ravas View Post
    What is Leap 15, compared with Leap 42.3?
    Leap 15 is the next major version, 15.0 is the successor of Leap 42.3.
    It's still beta, the release is currently targeted for May.

    The reason for the versioning:
    Leap 42 is based on SLE12, and it was desirable to somehow reflect that in the version number.
    But the previous openSUSE version was 13.2 already, after some discussions 42 was chosen (as a reference to The Hitchhiker's Guide To The Galaxy), 42 = 12 + 30.
    Originally, the next version was supposed to be 43(.0).
    But then SUSE decided to skip versions 13 and 14 for SLE and use 15 as version number for the next release, so the version numbers could finally be "merged" again. I.e. Leap 15 is based on SLE 15.
    Last edited by wolfi323; 01-Feb-2018 at 14:51.

  5. #5
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,037

    Default Re: installing python 3.6 on leap

    On Thu, 01 Feb 2018 21:56:01 +0000, wolfi323 wrote:

    > But the previous openSUSE version was 13.2 already, after some
    > discussions 42 was chosen (as a reference to 'The Hitchhiker's Guide To
    > The Galaxy'
    > (https://en.wikipedia.org/wiki/The_Hi..._to_the_Galaxy)),
    > 42 = 12 + 30.


    There also is a history of "42" in the openSUSE project; the initial
    version of YaST and the original SuSE Linux distro both were tied to that
    version number (as I recall, 0.42 and 4.2, respectively).

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  6. #6
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: installing python 3.6 on leap

    Thanks Gs.

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: installing python 3.6 on leap

    Use the openSUSE repos if you want to upgrade python on your system.

    If you instead want or need to install python version side by side, you can do this using virtualenv... Although you can install virtualenv also from the openSUSE repos, it's probably better to use pip to install from the official Python repos.

    The virtualenv documentation

    https://virtualenv.pypa.io/en/stable/

    Or, use virtualization, you can install or upgrade python in isolated machines, changes and configurations in each machine won't affect what is on your main system or other virtual machines.

    HTH,
    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!

  8. #8
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: installing python 3.6 on leap

    Thanks.

    I found https://gist.github.com/antivanov/01...be598b5a0a4ac7
    but have not tried that yet.

  9. #9
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,806
    Blog Entries
    1

    Default Re: installing python 3.6 on leap

    Quote Originally Posted by ravas View Post
    Thanks.

    I found https://gist.github.com/antivanov/01...be598b5a0a4ac7
    but have not tried that yet.
    Pyenv looks like a very nice way to complement and manage your virtualenv.
    Curious and a bit amusing that pyenv is a derivative of rbenv(which I strongly endorse over the more popular rvm for similar Ruby version management) which in turn was derived from virtualenv. Derivatives coming full circle.

    In any case, it looks like the script you intend to run implements pyenv's "manual installation" described in pyenv's official documentation,

    https://github.com/pyenv/pyenv#basic-github-checkout

    The only slight drawback with the architecture of pyenv (and rbenv) is that there will be a number of situations you'll need to re-hash your shims... eg updating pyenv and each time you install/uninstall a python version.

    Good Luck,
    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!

  10. #10
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: installing python 3.6 on leap

    I added the repository
    https://download.opensuse.org/reposi...USE_Leap_42.3/

    zypper install python3-3.6.4-210.1.x86_64

    It uninstalled various of packages, such as python3-apparmor.

    Things seem to work.

    Unfortunately, it doesn't seem to offer https://pypi.python.org/pypi/pip
    I'd like to use it to get https://pypi.python.org/pypi/PyQt5/5.10

    I did find https://pip.pypa.io/en/stable/instal...ith-get-pip-py
    but have not tried it yet.

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

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