Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to solve the problem of package control error in sublime

Shulou Source: shulou.com Published: 2022-06-02 18:49:33 11月15日 Update

The editor will share with you how to solve the problem of package control errors in sublime. I hope you will gain a lot after reading this article. Let's discuss it together.

There is an error in the package control of sublime and needs to be updated.

Recently, I received an outsourcing and tried to use Baidu fis. When I was looking for tools while studying, I found that there was an error in sublime's package control request plug-in list. Ctrl+ `looked at it and found that the original list address could no longer request content, so it went wrong.

As long as the update can be solved, ctrl+ `and then enter the following content, wait for the installation to restart sublime text!

Sublime-text 3import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' +' e330c659d4bb41d3bdf022e94cab3cd022; 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') after reading this article, I believe you have some understanding of how to solve the problem of package control errors in sublime. Want to know more about it, welcome to follow the industry information channel, thank you for reading!

Tags: Questions content articles updates address done tools plug-ins time more in progress knowledge industry information channels channels attempts research input Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Huawei MySQL Xiaomi MariaDB