• Python 3.8 or later on Debian?

    From Ulrich Goebel@3:633/280.2 to All on Thu Sep 19 00:49:39 2024
    Hi,

    Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's installed on my Debian Server.

    But I need at least Python 3.8

    Is there a repository which I can give to apt to get Python 3.8 or later?

    Or do I really have to install and compile these versions manually? I'm not a friend of things so deep in the system...

    Greetings
    Ulrich

    --
    Ulrich Goebel <ml@fam-goebel.de>

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)
  • From Alexander Neilson@3:633/280.2 to All on Thu Sep 19 08:49:02 2024
    Python 3.7 is part of Buster (Debian old old stable)
    If you moved to Debian bullseye you would get offered 3.9 (old stable)

    Currently the stable version (Bookworm) would give you 3.11

    I am not aware of anyone maintaining a repo for old Debian versions to get n= ewer Python versions. But I know in the past I did build newer Python versio= ns (mostly on raspberry pi=E2=80=99s)

    Regards
    Alexander

    Alexander Neilson
    Neilson Productions Limited
    021 329 681
    alexander@neilson.net.nz

    On 19 Sep 2024, at 10:42, Ulrich Goebel via Python-list <python-list@pytho=
    n.org> wrote:
    =20
    =EF=BB=BFHi,
    =20
    Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and=
    it's installed on my Debian Server.
    =20
    But I need at least Python 3.8
    =20
    Is there a repository which I can give to apt to get Python 3.8 or later?
    =20
    Or do I really have to install and compile these versions manually? I'm no=
    t a friend of things so deep in the system...
    =20
    Greetings
    Ulrich
    =20
    --
    Ulrich Goebel <ml@fam-goebel.de>
    --
    https://mail.python.org/mailman/listinfo/python-list

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)
  • From dn@3:633/280.2 to All on Thu Sep 19 09:40:50 2024
    On 19/09/24 02:49, Ulrich Goebel via Python-list wrote:
    Hi,

    Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's installed on my Debian Server.

    But I need at least Python 3.8

    Is there a repository which I can give to apt to get Python 3.8 or later?

    Or do I really have to install and compile these versions manually? I'm not a friend of things so deep in the system...


    Assumptions:
    1 "need" for a particular project, cf system-wide
    2 use of a virtual-environment for project(s)


    Try pyenv (https://github.com/pyenv/pyenv).

    It offers a list of Python versions. When downloaded, it builds a
    version for you - assuming have build-environment s/w in place.
    (this is where my lack of Debian knowledge may become obvious)

    Thereafter, within the project's virtual-environment can select which (installed-version of) Python is to be used.

    Am sure there are plenty of how-to-installs. Here's one: https://bgasparotto.com/install-pyenv-ubuntu-debian

    Am using pyenv to support multiple projects initially built during the
    reign of multiple Python versions (which now update annually - next is
    about two weeks away).

    --
    Regards,
    =dn

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: DWM (3:633/280.2@fidonet)
  • From Thomas Passin@3:633/280.2 to All on Thu Sep 19 09:27:29 2024
    On 9/18/2024 10:49 AM, Ulrich Goebel via Python-list wrote:
    Hi,

    Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's installed on my Debian Server.

    But I need at least Python 3.8

    Is there a repository which I can give to apt to get Python 3.8 or later?

    Or do I really have to install and compile these versions manually? I'm not a friend of things so deep in the system...

    My Debian 12 VM has python 3.11. You must have a very old version of
    Debian. On some VMs (not Debian, I think) I have had other Python
    versions alongside of the system's, e.g., 3.11 and 3.12. I didn't
    compile them myself. You will have to search for a repository with the
    right package. But upgrade your system first!

    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)
  • From Mats Wichmann@3:633/280.2 to All on Fri Sep 20 03:09:53 2024
    On 9/18/24 08:49, Ulrich Goebel via Python-list wrote:
    Hi,

    Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's installed on my Debian Server.

    But I need at least Python 3.8

    Is there a repository which I can give to apt to get Python 3.8 or later?

    Or do I really have to install and compile these versions manually? I'm not a friend of things so deep in the system...
    Not going to pile on and tell you you must upgrade...

    You can use a tool like pyenv to build Python IF another answer doesn't present itself - it how to build just about any version (not just
    cpython, but pypy, anaconda and more). The Real Python folks have
    written a fairly complete description (plus of course there's the
    project's own documentation):

    https://realpython.com/intro-to-pyenv/



    --- MBSE BBS v1.0.8.4 (Linux-x86_64)
    * Origin: ---:- FTN<->UseNet Gate -:--- (3:633/280.2@fidonet)