已安装Python 3.8.5,但终端在输入python3时使用3.7.6

问题描述

我会直截了当。我安装了python版本3.8.5作为最新的稳定python版本,但是当我在终端中使用命令python3时,它使我使用了python 3.7.6。

有没有办法解决这个问题?

screenshot of the problem

解决方法

确保已将新版本的本地添加到PATH变量中,并确保命令s指向正确的文件,

python3 —version

查看以下内容:https://superuser.com/questions/433897/python-in-command-line-runs-the-wrong-version