在Ubuntu 23.04上安装Python3.10

在Ubuntu 23.04上安装Python3.10

我尝试在 Ubuntu 23.04 上安装 python3.10 和本机 python3.11,但看起来不可用。

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

我试过用死蛇,但它们没有当前 Ubuntu 版本的发布文件。执行sudo add-apt-repository ppa:deadsnakes/ppa即可确认。

可以在 Ubuntu 23.04 上安装 python3.10 吗?

答案1

答案2

尝试这个而不是deadsnakes:

sudo add-apt-repository ppa:savoury1/python
sudo apt update
sudo apt-get install python3.10

相关内容