我无法在朋友的计算机上构建Python系统,该计算机使用Sublime Text 2运行Windows XP SP3.我们重新安装了Python 2.7.3和Sublime Text 2,但仍然遇到了麻烦.我们的Python.sublime-build领域说:
{
"cmd": ["C:\\Python27\\python.exe", "-u", "$(FULL_CURRENT_PATH)"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
Run Code Online (Sandbox Code Playgroud)
当我们尝试构建简单的Python程序时,例如:
2 * 2
Run Code Online (Sandbox Code Playgroud)
Sublime Text不会构建系统,而是吐出来:
C:\Python27\python.exe: can't find '__main__' module in ''
[Finished in 0.1s with exit code 1]
Run Code Online (Sandbox Code Playgroud)
如果我能得到一些帮助,那就太好了.非常感谢你帮助我的人!