The following tutorial column will introduce to you how to solve the problem that Sublime Package Control cannot be installed. I hope it will be helpful to friends who need it!
Sublime Text3 official website download address: http://www.sublimetext.com/3
The first thing after downloading is to install the package manager Package Control, but after trying for a long time, it cannot be installed successfully!
1. Install Package Control
A long time ago, if you wanted to install Package Control in Sublime text 3, you had to install Git first, and then enter the code to install it.
But later a convenient installation method came out, which is through the command line: Through ctrl `
shortcut key or
Menu opens the console, copy and paste the following code and press Enter: import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; 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)
So I tried it, but it didn’t work, an error was reported, and the console prompt is as follows:
## Unable to connect to the server, it should be blocked
Then another way: 
Unzip the downloaded package and unzip the folder Rename it to
Package Control ,
2. Install plug-in
Okay, let’s try to install a plug-in, such as Emmet, Ctrl Shift P to open the console, enter install, select Install Package, press Enter, you have to wait at this time After a while, because Package Control is loading the plug-in listBut unfortunately, it fails again:It prompts that https://packagecontrol.io/ cannot be accessed channel_v3.json. This should also be blocked...
Solution:
Add the following content:
"channels": [ "http://cst.stu.126.net/u/json/cms/channel_v3.json", ],
As shown: 
Let’s start the front-end journey! ! !
The above is the detailed content of Solve the problem that Sublime Package Control cannot be installed. For more information, please follow other related articles on the PHP Chinese website!
How do I reset Sublime Text to its default settings?Jul 23, 2025 am 03:43 AMToresetSublimeTexttoitsdefaultsettings,youmustmanuallyremoveorreplacetheDatafolderwheresettings,packages,andcachearestored,whichwillerasecustomizationsandrestoreoriginaldefaults.Thestepsareasfollows:1.LocatetheDatafolder(Windows:C:\Users\YourUsername
How do I use Sublime Text with remote development tools (e.g., SSH)?Jul 23, 2025 am 02:48 AMSublimeTextcanbeusedforremotedevelopmentbyusingpluginsorfilesystemmounting.1.InstalltheSFTPpluginviaPackageControltoconnecttoaremoteserverandsyncfilesautomatically.2.Createaconfigurationfilewithconnectiondetailssuchashost,username,andremotepath.3.Edi
How to create a snippet in Sublime TextJul 23, 2025 am 02:41 AMOpen Tools→Developer→NewSnippet...Edit XML template; 2. Set content (including tabstops such as ${1:xxx}), tabTrigger (trigger word), scope (scope of action such as text.html) and description; 3. Save as Packages/User/xxx.sublime-snippet, and then enter the trigger word Tab in the corresponding file to insert snippet.
How to fold and unfold code in Sublime TextJul 23, 2025 am 02:23 AMFoldablockwithCtrl Shift [(Win/Linux)orCmd Option [(macOS),2.UnfoldwithCtrl Shift ]orCmd Option ],3.UseCtrl K,Ctrl 1tofoldallandCtrl K,Ctrl Jtounfoldall,4.FoldbyindentationlevelviaCtrl K,Ctrl [followedbyanumber—theseshortcutsmakemanaginglargefileseff
How do I save a file in Sublime Text?Jul 22, 2025 am 03:01 AMThe method of saving files in SublimeText is as follows: 1. Use the shortcut keys Ctrl S (Windows/Linux) or Cmd S (macOS), or operate through the File>Save menu; 2. When saving for the first time, you need to specify the file name and path and add the correct extension; 3. If you need to save as another name or location, select File>SaveAs... and set a new path; 4. Press Ctrl K and then Ctrl S (or Cmd KCmd S) to save all modified files at once; 5. SublimeText does not enable automatic save by default, but au can be enabled in Preferences>Settings
How do I use bookmarks in Sublime Text?Jul 22, 2025 am 02:44 AMSublimeText's bookmarking feature helps quickly jump key lines of code. The setting method is: 1. Click on the blank area on the left side of the line number; 2. Use the shortcut key Ctrl F2 (Mac is Cmd F2). The navigation method is: 1. Press F2 to jump to the next bookmark; 2. Press Shift F2 to return to the previous bookmark. The methods for clearing include: 1. Use Ctrl F2 again to cancel a single bookmark; 2. Clear it with one click through the menu Selection>BookmarkLines>ClearBookmarks. In addition, you can use BookmarkAll function to batch mark multiple lines. After selecting the target line, enter the menu Selection>Book
How do I pull changes from a remote repository in Sublime Text?Jul 22, 2025 am 12:54 AMYoucanpullchangesfromaremoterepositoryinSublimeTextusingpluginsortheterminal.1.InstallGitSavvyorSublimeGittoperformGittaskswithinSublime;GitSavvyisfreeandopen-sourcewhileSublimeGitoffersapolishedUI.2.AfterinstallingGitSavvy,usetheCommandPaletteorshor
How do I view the Git history in Sublime Text?Jul 22, 2025 am 12:17 AMSublimeText can view Git history through the GitSavvy plugin. First, install PackageControl and GitSavvy plug-in; second, right-click the file and select "Git:Viewfilehistory" to view the file submission record; again, execute "Git:Viewgitlog" through the command panel to view the overall project submission log; finally, you can use the "Git:Toggleinlineblame" function to view the modifyer and submission information of each line of code.


Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver Mac version
Visual web development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6
Visual web development tools







