sublimeText3
官网:packagecontrol.io (被墙)
手动搬运:
- 启动控制台
ctrl + `
或
View > Show Console
- 执行安装脚本
import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
官方亦有离线安装方案
- Click the Preferences > Browse Packages… menu
- 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://pan.baidu.com/s/1i5p1obz
革命尚未成功
即使包管理工具安装好了,安装其他包的时候,依然会困难重重,
解决方案参考: