sublime Text3插件无法安装解决方法(提示There are no packages available installation)

第一步

  在sublime Text3界面按”ctrl+、“出现一个输入框界面

第二步

  在输入框输入:

import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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)
重启即可!

posted @ 2017-03-07 10:42  Monroe_Yu  阅读(8691)  评论(1编辑  收藏  举报