我尝试在 WSL ubuntu 20.04 上安装 Python 3.7,但就是无法安装

我尝试在 WSL ubuntu 20.04 上安装 Python 3.7,但就是无法安装

这是我使用的命令:

sudo apt-get install python3.7

但我得到了:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3.7-2to3' for regex 'python3.7'
Note, selecting 'libpython3.7-stdlib' for regex 'python3.7'
0 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.

答案1

我遇到了同样的问题,我使用以下方法解决了它死蛇 PPA

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7

相关内容