我正在尝试在 ubuntu 16.04 上安装 Python3.7。我尝试了网上的安装步骤,但收到错误代码。
我的安装步骤:
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7
我的错误:
E: Unable to locate package python3.7
E: Couldn't find any package by glob 'python3.7'
E: Couldn't find any package by regex 'python3.7
我尝试过这个方法:
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt install python3.7
但我仍然遇到同样的错误:
user@ubuntu:~$ sudo apt install python3.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3.7
E: Couldn't find any package by glob 'python3.7'
E: Couldn't find any package by regex 'python3.7'
如何解决这些问题?
请参阅此处“支持的 Ubuntu 和 Python 版本”。 deadsnakes
似乎不再支持 Ubuntu 16.04,可能是因为它也已经停产了。 我建议