First, simple installation method
To use CTRL + ' shortcut keys or open the command line from the View->show console menu, paste the following code:
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 ())
If it goes well, you can now see the package settings and the package control two menus under the Preferences menu.
By the way, put sublime Text2 code:
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 ')
Second, 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 it to the installed packages/directory
4. Restart Sublime Text.
Reference:
Https://sublime.wbond.net/installation#st3
Sublime Text 3 Install the package Control