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 @ 2018-10-30 17:31  ESnail  阅读(407)  评论(0编辑  收藏  举报