SublimeText 包管理工具安装

sublimeText3
官网:packagecontrol.io (被墙)

手动搬运:

  1. 启动控制台

ctrl + `

View > Show Console

  1. 执行安装脚本

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)

官方亦有离线安装方案

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/
    folder
  3. Download Package Control.sublime-package
    and copy it into the Installed Packages/
    directory
  4. Restart Sublime Text

附:

我提供的下载镜像: http://pan.baidu.com/s/1i5p1obz

革命尚未成功

即使包管理工具安装好了,安装其他包的时候,依然会困难重重,
解决方案参考:


SublimeText 包管理工具安装_第1张图片
package-control.png
  • http://g8up.qiniudn.com/diy/sublimetext-channel_v3.json

你可能感兴趣的:(SublimeText 包管理工具安装)