Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if sublime text3 cannot install Package Control?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Xiaobian to share with you sublime text3 can not install Package Control how to do, I believe most people still do not know how, so share this article for everyone's reference, I hope you read this article after a lot of harvest, let's go to understand it together!

*** About sublime text 3 Common Package Control plug-in installation method ***

1, CTRL+` (under the ese key), Open the sublime command input box, Paste the following code into the command line, Enter directly execute:

sublime text 3 :

import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 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)

sublime text 2:

import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; 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')

2.Enter and wait for installation. Restart sublime after installation is complete.'ctrl+shift+p' opens package. Enter install package and no error will be reported after execution. Enter the desired plug-in to install it. After installation, restart sublime in the same way. So far, the commonly used method to install package control plug-in is this.

3. Manual installation of package control plug-in in new version of sublime:

①Sublime text 3 download address: http://www.sublimetext.com/;

② After installing sublime, press CTRL+`(under ese button) to open sublime command input box, paste the above package control plug-in installation code into the command line, and enter directly. At this time, you will see that this string of code has not been executed. In order to verify reliability, close sublime, restart sublime,'ctrl+shift+p' to open package, and enter install package. After execution, you will see the following error:

③ If you see the above error message, it means that we failed to install automatically. At this time, we need to install manually. The specific operations are as follows: enter the page, click the plug-in in the red box, download it to the desktop (it is more convenient to find), and attach the download address: packagecontrol.io/installation#st3

④ After downloading, open the sublime text 3 installation package, find the sublime text => Packages folder, copy the package control plug-in downloaded in the above picture to this file, and then re-run sublime, the same 'ctrl+shift+p' to open the package, enter install package to execute, you will not see the error in step 2, and then enter the plug-in you want to install to run OK.

4. Update: https://packagecontrol.io/installation#st3 Connection failure handling scheme:

① Go to the corresponding GiiHub address: https://github.com/wbond/package_control, download the package control package

② Extract the downloaded package and name it 'Package Control'. Open the sublime plugin storage address from the screenshot, return to the parent directory, find "\Sublime Text 3\Installed Packages", copy the Package Control package to the Installed Packages folder and restart sublime.

The above is "sublime text3 cannot install Package Control how to do" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report