Perfect solution Sublime Text 3/2 cannot install package control Problem manual Installation _ Experience Tutorial

Source: Internet
Author: User
Tags sublime text

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.