Sujet : Re: Python 3.8 or later on Debian?
De : PythonList (at) *nospam* DancesWithMice.info (dn)
Groupes : comp.lang.pythonDate : 19. Sep 2024, 00:40:50
Autres entêtes
Organisation : DWM
Message-ID : <mailman.7.1726702863.31645.python-list@python.org>
References : 1 2
User-Agent : Mozilla Thunderbird
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-debianAm 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