• Leap 15.6, distribution update and python 3.6 vs 3.11

    From Uwe Bonnes@bon@hertz.ikp.physik.tu-darmstadt.de to alt.os.linux.suse on Tue Jun 25 18:09:02 2024
    From Newsgroup: alt.os.linux.suse

    Hello,

    leap15.6 is announced to have python3.11. I did the distribution
    update for a machine from 15.5 to 15.6. I selected in Yast2 the Python developement environment. But /usr/bin/python3 is still /usr/bin/python3.6

    How to transistion to 311 without much pain?

    Thanks
    --
    Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de

    Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
    --------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Dave Royal@dave@dave123royal.com to alt.os.linux.suse on Sun Jun 30 11:26:18 2024
    From Newsgroup: alt.os.linux.suse

    On Tue, 25 Jun 2024 18:09:02 +0000, Uwe Bonnes wrote:

    Hello,

    leap15.6 is announced to have python3.11. I did the distribution update
    for a machine from 15.5 to 15.6. I selected in Yast2 the Python
    developement environment. But /usr/bin/python3 is still
    /usr/bin/python3.6

    How to transistion to 311 without much pain?

    Thanks

    I've been running a program in Python 3.10 (and earlier versions) in Leap
    15.5 using a python virtual environment: https://docs.python.org/3/library/venv.html

    For python 3.11 I'd download the suse python 3.11 packages, using yast,
    then set up the venv with
    david@localhost:~/projects/python/...> python3.11 -m venv venv
    then switch into it with
    david@localhost:~/projects/python/...> source venv/bin/activate
    (venv) david@localhost:~/projects/python/...>

    Within the venv you're using 3.11. Type 'python' to check. You can run pip
    to install modules.

    Before I adopted that method I tried using 'alternatives' but I found venv easier to control. Once, using alternatives, I managed to change the
    default system python version from 3.6: parts of yast stopped working!
    --
    (Remove any numerics from my email address.)
    --- Synchronet 3.21d-Linux NewsLink 1.2