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
Post a Comment