No Package Control in default Sublime 3

https://packagecontrol.io/installation#st3 (official)

It turned out that it was very troublesome to install Package Control in Subl3, and now the simple method is here

1. Simple installation method

Use the Ctrl+` shortcut or open the command line through the View->Show Console menu, and 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 all goes well, you can now see the Package Settings and Package Control menus under the Preferences menu.

By the way, paste the code of Sublime Text2:

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( 'Please restart Sublime Text to finish installation')

2. Manual installation

It may be impossible to install using code for various reasons, then you can install Package Control manually by following these steps:

1. Click the Preferences > Browse Packages menu

2. Enter the upper directory of the opened directory, and then enter the Installed Packages/ directory

3. Download Package Control.sublime-package and copy it to the Installed Packages/ directory

4. Restart Sublime Text.

refer to:

https://sublime.wbond.net/installation#st3

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325565666&siteId=291194637