konakona
Sublime text 2 实现Python环境编译
Sublime text 2 实现Python环境编译

http://blog.crazyphper.com/wp-content/uploads/2012/11/python-submile-text-2-build-300x159.gif

 

install package  – python

Menu – Browse Packages…

PATH 环境变量尾部添加:

;C:\Python32;D:\Program Files\Sublime Text 2\;C:\Python32\Tools\Scripts

 

解决UTF8错误:

find your Python package .

(mine : C:\Users\konakona\AppData\Roaming\Sublime Text 2\Packages\Python)

File "Python.sublime-build":


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

 

 

重新打开sublime text2, CTRL+B 即可编译。

赞赏
https://secure.gravatar.com/avatar/3b712b34a0e1b689cfb524c9c6bcdc47?s=256&r=g

团哥

文章作者

继续玩我的CODE,让别人说去。 低调,就是这么自信。

发表评论

textsms
account_circle
email

konakona

Sublime text 2 实现Python环境编译
  install package  - python Menu - Browse Packages... PATH 环境变量尾部添加: ;C:\Python32;D:\Program Files\Sublime Text 2\;C:\Python32\Tools\Scripts  …
扫描二维码继续阅读
2012-11-09