Python 3 IDLE (Shell) 但仅 Python 2.7 安装在 Raspberry Pi 上?

Python 3 IDLE (Shell) but only Python 2.7 installed on Raspberry Pi?

我在我的 Raspberry Pi 上安装了 Raspbian,它有 Python 3 IDLE 来编写代码。令我困惑的是,如果我在Raspberry Pi的命令中执行"python",它说Python版本是2.7? 有人可以帮忙吗?

只要不会给您带来任何问题,您都可以尝试运行 python3。如果您安装了 Python 2 和 3,根据我的经验 python 通常会运行 Python 2,所以我想您必须具体说明。