sublimetext2 - Python Sublime Text Path -


i downloaded sublime text 2 , have problem running code language python. here code:

def main:     print "hello" main() 

i error when ctrl + b:

[error 2] system cannot find file specified

[cmd: [u'python', u'-u', u'c:\users\hari\documents\test.py']]

[dir: c:\users\hari\documents]

[path: c:\program files (x86)\intel\icls client\;c:\program files\intel\icls client\;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files (x86)\intel\opencl sdk\2.0\bin\x86;c:\program files (x86)\intel\opencl sdk\2.0\bin\x64;c:\program files\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\ipt;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files (x86)\intel\intel(r) management engine components\ipt;c:\program files\intel\wifi\bin\;c:\program files\common files\intel\wirelesscommon] [finished]

i using windows 8 , tried change environment variables adding c:\python27\; or c:\python26\; or c:\python33\; or c:\python2\; or c:\python2\; beginning of path still gives me same error. can me?

you need edit %appdata%\sublime text 2\python\python.sublime-build

modify (change) content to:

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

so, change "c:\python27\" path part path/version of python exists in system.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -