Python版本冲突

时间:2021-02-10 08:55:58

标签: python python-3.x path-variables

我已经安装了 Python 版本 Python 3.7.8 并将其添加到路径变量中。 但是,当我在 cmd 中输入 python 时,我得到了 python 2.6

enter image description here

如果你看到下图,python 3.7 被添加到路径变量中! enter image description here

如何从 cmd 打开 python 3.7 而不是 2.6?

1 个答案:

答案 0 :(得分:2)

对于 python 2.x 使用 py -2.x 或 -2 对于最新的 2.x 对于 python 3.x 使用 py -3.x 或 -3 对于最新的 3.x