Sublime安装SublimeREPL插件后,运行带有input的python文件出现Python was not found but can be installed from the Micro

解决步骤:

1、检查是否在系统变量path中配置了python的路径
Sublime安装SublimeREPL插件后,运行带有input的python文件出现Python was not found but can be installed from the Micro

2、在确认已经配置了python环境变量后,检查用户的path环境变量中是否有%USERPROFILE%\AppData\Local\Microsoft\WindowsApps

如果有,点击编辑然后清空这段字符,保存后要重启电脑。

原因:%USERPROFILE%\AppData\Local\Microsoft\WindowsApps会造成用户在使用python时,会优先连到windows应用商店去下载python,而不是使用电脑本地安装的python。

最后运行成功如下:
Sublime安装SublimeREPL插件后,运行带有input的python文件出现Python was not found but can be installed from the Micro
We read the world wrong and say that it deceives us.