Original Blog Address: https://lwxshow.com/post/1816.html
Sublime text can be said to be with Eclipse and say the best development tool in the world at present.
Many times, we search the Internet Sublimetext 3 install package control, display 99% are not available. Here is not a list. Always a word, are clouds. So how do you fix the problem of not installing package control?
Below, for you to share my experience.
Sublime Text latest installation package control mode
Menu-----view---->show Console
ctrl+~
Copy the following code and paste it into the console box
1.sublime Text 3 setup script code View Print import urllib.request,os,hashlib; h = ' 2915d1851351e5ee549c20394736b442 ' + ' 8bc59f460fa1548d1514676163dafc88 '; 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)
2.sublime Text 2 setup script code View Print import urllib2,os,hashlib; h = ' 2915d1851351e5ee549c20394736b442 ' + ' 8bc59f460fa1548d1514676163dafc88 '; 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://packagecontrol.io/' + 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 ')
3. Manual installation of said.
If it's not bad, just praise it.
Download Package control.sublime-package
[File]
Copy to your installation package directory
All right. Some people say that they do not know where the installation package directory is.
Click Preferences > Browse Packages
will open the directory of your installation package.
Restart Sublime Text