Score:2

Cannot install Python old version(including ~3.9) in ubuntu 22.10

cn flag

Recently, I updated my ubuntu version to 22.10. I researched online to install python old version in ubuntu 22.10.

sudo add-apt-repository ppa:deadsnakes/ppa This command does not work 22.10. How can I install old python version? Why I am going to install python old version is, already installed pgadmin is not working in Ubuntu 22.10 and solution is to install old python version according to my research. It will be better how pgadmin can work again.

ChanganAuto avatar
us flag
That PPA only support 18.04, 20.04 and 22.04. It doesn't support 22.10 and never will. You shouldn't mess with the system's python anyway or you'll break pretty much everything that relies on it, i.e. a huge part of the OS including apt. Some reading: https://unix.stackexchange.com/questions/565403/how-to-prove-installing-different-python-version-wont-interfere-with-the-system
Yery cs avatar
cn flag
Hi @ChanganAuto. Why pgadmin does not support 22.10 and will not? And what is the solution for pgadmin?
ChanganAuto avatar
us flag
PPAs support the releases their maintainers decide to support, that's all. In the case of the "deadsnakes" PPA it's easy to see they intend to support LTS only. So, if still maintained then, the next expected release to have support will be 24.04 (April 2024). 22.10, 23.04, 23.10 will occur before 24.04 but they AREN'T Long Term Support releases.
Yery cs avatar
cn flag
Oh, then should I wait until April 2024, if I don't install OS again?
ChanganAuto avatar
us flag
No. Please read the answer.
Score:4
ar flag

You may find it useful to use pyenv to manage different python versions on one host.

Basic GitHub checkout installation method in README section works pretty well for linux distributions.

After that, you will be able to install different python versions with pyenv install <version>, set some local python interpreter for the directory with pyenv local <version>, global one with pyenv global <version>

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.