Python settings in Sublime Text 2 -


when press ctrl+b in sb2 in console importerror: no module named site. how fix it?

first make sure saved file .py extension , try run again. need check python in .sublime-build correct. @ %appdata%\sublime text 2\python\python.sublime-build file. file should have this:

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

this equivalent doing following on command line, check can do:

python -u c:\your_path\your_script.py 

if doesn't work command line wont sublime.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -