已安装最新版本但未被使用

已安装最新版本但未被使用

我一直在尝试在 Debian buster 服务器上将 python 升级到 3.7。如果我输入,python3 --version它会返回python 3.6.1。但是,如果我运行,sudo apt install python3它会返回以下内容:

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.7.3-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

同样运行sudo apt-get install python3.7会给出以下输出:

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.7 is already the newest version (3.7.3-2).
python3.7 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

因此,看起来 Python 3.7 已安装,但为什么它返回的使用的版本是 3.6.1 ?

有什么想法可以修复此问题以使用 python 3.7?

相关内容