5

我安装了 python 3.2,后来又安装了 python 2.7。不知何故,我通过右键单击 python 文件 -> 使用 IDLE 编辑打开它的 IDLE 正在使用 python 2.7 而不是 python 3.2。

似乎 python 2.7 被设置为 IDLE 的默认值。即使我将windows高级设置中的PATH环境变量改回python 3.2,默认的python shell仍然是2.7。我确信路径中不再有 python 2.7。

后来我必须卸载python 2.7并重新安装python 3.2。

4

1 回答 1

1

The IDLE context menu plug-in is registered when you install Python and points to the version of IDLE supplied with the Python installed. (IDLE itself has significant code changes between Python 2 and 3 because it's written in Python and the language changed a lot.) To change it, simply re-install the version of Python you wish the IDLE context menu to invoke.

于 2012-08-24T01:26:13.113 回答