获取错误版本的 python

getting the wrong version of python

我已经在笔记本电脑上安装了 python 3.6,但是当我 运行 版本命令时,我得到的是 2.7 版本。我已经更改了路径变量,但仍然得到相同的结果,有趣的是我的笔记本电脑上什至没有安装 python 2.7。

这是图片path variable and version also when I run python in cmd I get the error run error任何帮助将不胜感激

正在输入:

where -a python

显示命令

的顺序
python 

在您的路径上找到了。

使用:

which -a python

在 unix-like 系统上,例如 Linux 或 MacOS X。