Score:1

Install Python3.10 on Ubuntu 23.04

mw flag

I've tried to install python3.10 alongside with native python3.11, on Ubuntu 23.04, but looks like it's not available.

mika@system:~$ sudo apt update && sudo apt install python3.10
Hit:1 http://ru.archive.ubuntu.com/ubuntu lunar InRelease
Get:2 http://ru.archive.ubuntu.com/ubuntu lunar-updates InRelease [109 kB]
Hit:3 https://repo.yandex.ru/yandex-browser/deb stable InRelease          
Get:4 http://ru.archive.ubuntu.com/ubuntu lunar-backports InRelease [99.8 kB]
Get:5 http://security.ubuntu.com/ubuntu lunar-security InRelease [109 kB] 
Fetched 317 kB in 1s (295 kB/s)    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3.10 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3.10' has no installation candidate

I've tried to use deadsnakes, but they don't have the Release file for current Ubuntu version. Executing sudo add-apt-repository ppa:deadsnakes/ppa confirms that.

Is it possible to install python3.10 on Ubuntu 23.04?

us flag
Don't change the default python version. You might end up destroying Ubuntu. Instead, use Miniconda/Anaconda to create a virtual environment.
Martin Thøgersen avatar
re flag
Same issue here. Real bummer. I now have python3.9 and 3.11 and Ubuntu 23.04, and a lot of projects on python3.10.
cm flag
Deadsnakes doesn't offer Python 3.10 for Ubuntu 23.04, but you should be able to get Python 3.11 if that works. If this is for something that is explicitly looking for Python 3.10, yes, you'll have to compile from source. Here's a nice article explaining how to do that for anyone who stumbles across this: https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/?expand_article=1
us flag
Don't change the default python version. You might end up destroying Ubuntu. Instead, use Miniconda/Anaconda to create a virtual environment.
Score:0
us flag

try this instead of deadsnakes:

sudo add-apt-repository ppa:savoury1/python
sudo apt update
sudo apt-get install python3.10
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.