Enable method: Menu bar –view–show Console, paste in the following code and enter, and then restart Sublime.
Import urllib2,os;pf= ' package control.sublime-package '; Ipp=sublime.installed_packages_path (); Os.makedirs (IPP) if Not os.path.exists (IPP) Else None;open (Os.path.join (IPP,PF), ' WB '). Write (Urllib2.urlopen (' Http://sublime.wbond.net /' +pf.replace (', '%20 '). Read ())
Start installing some very useful plugins, ctrl+shift+p (menu –tools–command paletter), enter install to select the install package and enter, Enter or select the plug-in you need to install (note the small text changes in the lower left corner, will prompt installation success), install other plug-ins is also this method, very fast.
Or you can use shortcut keys:
From the menu View-show console or CTRL + ~ shortcut keys, bring up the console. Paste the following Python code in and enter to perform the installation without exception. The installation code for ST3 and ST2 is provided below:
Sublime Text 3:
Import Urllib.request,os; PF = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ())
Sublime Text 2:
Import Urllib2,os; 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 ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib2.urlopen (' http://sublime.wbond.net/' +pf.replace (', '%20 '). Read () ); Print (' Restart Sublime Text to finish installation ')
Manual Installation:
You may not be able to use code installation for a variety of reasons, and you can manually install the package Control by using the following steps:
1. Click Preferences > Browse Packages menu
2. Go to the upper-level directory of the Open directory before entering the installed packages/directory
3. Download the package control.sublime-package? and copy to installed packages/directory
4. Restart Sublime Text.
Sublime Text Plugin Installation