解决Sublime Text运行Python报错:Python was not found but can be installed from the Microsoft Store:http:..

已经在官网安装好Python后,在Sublime Text直接写py文件运行时报错,说找不到Python,主要原因就是没配置环境变量(即使安装时已经add to Path)。
去配置一下就好了。至于怎么配置:
属性---->高级系统设置----->环境变量----->Path---->新增环境
解决Sublime Text运行Python报错:Python was not found but can be installed from the Microsoft Store:http:.._第1张图片
Python安装位置
----->确定---->确定----->确定!就好了!
去命令行窗口检查一下win+R—>cmd:
可以看到版本号就好了
再次回到Sublime Text,ctrl + B运行文件,就可以直接在底下看结果了~
解决Sublime Text运行Python报错:Python was not found but can be installed from the Microsoft Store:http:.._第2张图片

你可能感兴趣的:(python)