当时使用的是粘贴代码:
1 | import urllib2,os;pf = 'Package Control.sublime-package' ;ipp = sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None ; open (os.path.join(ipp,pf), 'wb' ).write(urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace( ' ' , '%20' )).read()) |
但是有时候粘贴代码会出现问题,那么这个时候我们就需要手动安装了
过程如下:
- Click the Preferences > Browse Packages… menu entry
- Browse up a folder and then into the Installed Packages folder
- Download Package Control.sublime-package and copy it into the Installed Packages directory
- Restart Sublime Text
参考资料:
http://wbond.net/sublime_packages/package_control/installation
==============================================================================
本文转自被遗忘的博客园博客,原文链接:http://www.cnblogs.com/rollenholt/archive/2012/07/25/2607625.html,如需转载请自行联系原作者