SublimeText 2编译python出错的解决方法(The system cannot find the file specified)

人生路上我们孜孜不倦,尽力拼搏,生活途中勤勤恳恳,努力追寻!停止悲伤,机会从来不为任何人驻足。

[Error 2] The system cannot find the file specified

解决方法:
1.环境变量path添加:
C:\Python32\Tools\Scripts;D:\Python32;D:\Program Files\Sublime Text2;
2.Python.sublime-build内容修改
原内容:


{
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}

修改为(路径为安装文件夹):


{
"cmd": ["C:/Python26/python.exe", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}

本文SublimeText 2编译python出错的解决方法(The system cannot find the file specified)到此结束。成熟的麦子低垂着头,那是在教我们谦逊;一群蚂蚁能抬走大骨头,那是在教我们团结;温柔的水滴穿岩石,那是在教我们坚韧;蜜蜂在花丛中忙碌,那是在教我们勤劳。小编再次感谢大家对我们的支持!

标签: python