欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

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

程序员文章站 2022-05-12 22:05:13
...
[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)

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频


网友评论

文明上网理性发言,请遵守 新闻评论服务协议

我要评论
  • SublimeText 2编译python出错的解决方法(The system cannot find the file specified)
  • 专题推荐

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

    认证0级讲师

    推荐视频教程
  • SublimeText 2编译python出错的解决方法(The system cannot find the file specified)javascript初级视频教程
  • SublimeText 2编译python出错的解决方法(The system cannot find the file specified)jquery 基础视频教程
  • 视频教程分类