如何在 Ubuntu 21.04 上安装 python3.8?

如何在 Ubuntu 21.04 上安装 python3.8?

我正在尝试在 Ubuntu 上安装 python3.8。
我尝试了很多命令,但都不起作用。我正在尝试这个:

sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev`

安装先决条件,但出现此错误:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libreadline-gplv2-dev 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 'libreadline-gplv2-dev' has no installation candidate.

有人可以帮我安装 python3.8 吗?

相关内容