tata色々な備忘録

データ解析、画像解析、化学分析などなど

Sublime text2の環境構築2

sublime textでmatplotlibやopencvを実行する。

sublime textを立ちあげ、 Preferences⇒packages folder⇒ pythonPython.sublime-build を開く

{
    "cmd": ["python", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "env":{"PYTHONPATH":"C:/Python27/Lib/site-packages"},
    "selector": "source.python",
    "shell":true
}

"shell":true の行を追記した。

参考

http://stackoverflow.com/questions/10831882/matplotlib-plots-not-displaying-in-sublimetext

http://docs.sublimetext.info/en/latest/