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

时间:2024-05-22 14:42:09

已经在官网安装好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:..
解决Sublime Text运行Python报错:Python was not found but can be installed from the Microsoft Store:http:..
----->确定---->确定----->确定!就好了!
去命令行窗口检查一下win+R—>cmd:
解决Sublime Text运行Python报错:Python was not found but can be installed from the Microsoft Store:http:..
再次回到Sublime Text,ctrl + B运行文件,就可以直接在底下看结果了~
解决Sublime Text运行Python报错:Python was not found but can be installed from the Microsoft Store:http:..