SublimeText 2 compilation python error solution (The system cannot find The file specified)

  • 2020-04-02 13:15:39
  • OfStack

[Error 2] The system cannot find The file specified

Solutions:
1. Add the environment variable path:
C: \ Python32 \ Tools \ Scripts. D: \ Python32; D: \ \ Program Files \ Sublime does Text2.
2.Python. Sublime -build content modification
The original content:


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

Modify to (the path is the installation folder) :


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


Related articles: