reference:
sublime.wbond.net/installation
But ,when I did as the Simple,the answer is :
import 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)
132375
Traceback (most recent call last):
File “/opt/sublime_text/sublime_plugin.py”, line 680, in update_compressed_packages
multi_importer.loaders = [ZipLoader§ for p in pkgs]
File “/opt/sublime_text/sublime_plugin.py”, line 680, in
multi_importer.loaders = [ZipLoader§ for p in pkgs]
File “/opt/sublime_text/sublime_plugin.py”, line 588, in init
z = zipfile.ZipFile(zippath, ‘r’)
File “X/zipfile.py”, line 910, in init
File “X/zipfile.py”, line 944, in _GetContents
File “X/zipfile.py”, line 959, in _RealGetContents
zipfile.BadZipFile: File is not a zip file
I also try manual method.But there is no folders except user.I create “Installed Packages” folder under user and out user.After restart sublime ,there’s nothing changed.
Any help will be thankful.