标签: python python-3.x path-variables
我已经安装了 Python 版本 Python 3.7.8 并将其添加到路径变量中。 但是,当我在 cmd 中输入 python 时,我得到了 python 2.6
如果你看到下图,python 3.7 被添加到路径变量中!
如何从 cmd 打开 python 3.7 而不是 2.6?
答案 0 :(得分:2)
对于 python 2.x 使用 py -2.x 或 -2 对于最新的 2.x 对于 python 3.x 使用 py -3.x 或 -3 对于最新的 3.x