自己主动安装:
1、通过快捷键 ctrl+` 或者 View > Show Console 菜单打开控制台
2、粘贴相应版本号的代码后回车安装
适用于 Sublime Text 3:
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())
适用于 Sublime Text 2:
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp)ifnotos.path.exists(ipp)elseNone;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')
手动安装:1、点击 Preferences > Browse Packages… 菜单
2、进入 Installed Packages/ 文件夹
3、下载 Package Control.sublime-package,并拷贝文件到 Installed Packages/ 文件夹
4、重新启动 Sublime Text