一、点击“Preferences”,选择“Run”,在“Console”中选择第二个选项。 相关推荐:《Python入门教程》 二、然后点击“Python interprter”,将第二项“Use the following Python interpreter”改为你的环境路径。 运行下面的程序即可。