您好,欢迎访问一九零五行业门户网

sublime的package control出错了怎么办

下面由sublime教程栏目给大家介绍sublime的package control出错了的解决办法,希望对需要的朋友有所帮助!
sublime 的 package control 出错,需要更新了。
最近接了个外包顺便尝试用一下百度fis,正在一边研究一边找工具的时候发现sublime的package control请求插件列表时出错了,ctrl+`看了一下发现原来的列表地址已经请求不到内容了所以才会出错。
只要更新一下就可以解决,ctrl+`之后输入以下内容回车,等待安装完成重启sublime text即可!
sublime-text 3import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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)sublime-text 2import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'package control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else none; urllib2.install_opener( urllib2.build_opener( urllib2.proxyhandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else none; print('error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'please restart sublime text to finish installation')
package control官方地址:https://sublime.wbond.net/installation
以上就是sublime的package control出错了怎么办的详细内容。
其它类似信息

推荐信息