Discussion:
Python 3.8 or later on Debian?
(too old to reply)
Ulrich Goebel
2024-09-18 14:49:39 UTC
Permalink
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 <***@fam-goebel.de>
Alexander Neilson
2024-09-18 22:49:02 UTC
Permalink
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 newer Python versions. But I know in the past I did build newer Python versions (mostly on raspberry pi’s)

Regards
Alexander

Alexander Neilson
Neilson Productions Limited
021 329 681
Post by Ulrich Goebel
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
--
--
https://mail.python.org/mailman/listinfo/python-list
dn
2024-09-18 23:40:50 UTC
Permalink
Post by Ulrich Goebel
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
Thomas Passin
2024-09-18 23:27:29 UTC
Permalink
Post by Ulrich Goebel
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!
Mats Wichmann
2024-09-19 17:09:53 UTC
Permalink
Post by Ulrich Goebel
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/

Loading...