当我尝试安装 Python 3.8 时,终端显示已完成,但当我运行时,python --version它显示 Python 3.7。
(base) user@admin:~$ sudo apt-get install python3.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.8 is already the newest version (3.8.2-1ubuntu1.2).
The following packages were automatically installed and are no longer required:
libllvm9 libllvm9:i386
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
Run Code Online (Sandbox Code Playgroud)
(base) user@admin:~$ python --version
Python 3.7.6
Run Code Online (Sandbox Code Playgroud)