從菜單 View - Show Console 或者 ctrl + ~ 快捷鍵,調出 console。將如下 Python 代碼粘貼進去並 enter 執行,不出意外即完成安裝。如下提供 ST3 和 ST2 的安裝代碼:web
Sublime Text 3:ui
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())url
Sublime Text 2:spa
import urllib2,os; pf='Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler( ))); open( os.path.join( ipp, pf), 'wb' ).write( urllib2.urlopen( 'http://sublime.wbond.net/' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation').net
轉自
rest
http://www.imjeff.cn/blog/62orm