美文网首页
SublimeText 包管理工具安装

SublimeText 包管理工具安装

作者: 死宅程序员 | 来源:发表于2017-01-10 16:43 被阅读146次

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

革命尚未成功

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


package-control.png

相关文章

网友评论

      本文标题:SublimeText 包管理工具安装

      本文链接:https://www.haomeiwen.com/subject/ktvbyttx.html