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

How to solve the problem that Sublime Package Control cannot be installed

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces how to solve the problem that Sublime Package Control can not be installed, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to know about it.

Download address of Sublime Text3 official website: http://www.sublimetext.com/3

The first thing to do after downloading is to install the package manager Package Control, but it has been tried for a long time but cannot be installed successfully!

1. Install Package Control

A long time ago, to install Package Control in Sublime text 3, you had to install Git first, and then enter the code to install it.

However, a convenient installation method has been developed, which is in the form of the command line:

Open the console through the ctrl+ `shortcut key or the View-- > show console menu, and copy and paste the following code:

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, no, reported an error, the console prompt is as follows:

Unable to connect to the server. It must have been walled.

Then put it another way:

Manually download a package control package: https://github.com/wbond/package_control

After opening the link, click Download ZIP on the right:

Extract the downloaded package, rename the unzipped folder to Package Control, copy it to sublime's packages directory, and go directly to the menu bar Perferences-> Browse Packages. Then copy the Package Control folder in

Then click the menu bar Perferences again, and you will find that there are two more menus, Package Settings and Package Control, which means that Package Control has been installed successfully.

two。 Install the plug-in

All right, let's try to install a plug-in, such as Emmet,Ctrl + Shift+P, open the console, type install, select Install Package, and enter. Wait a while, because Package Control is loading the plug-in list.

But unfortunately, it failed again:

Prompt that https://packagecontrol.io/channel_v3.json cannot be accessed. This should be covered by the wall, too.

Solution:

Open Package Settings-- > Package Control-- > Settings User

Add the following:

"channels": ["http://cst.stu.126.net/u/json/cms/channel_v3.json",]

As shown in the figure:

Http://cst.stu.126.net/u/json/cms/channel_v3.json is a domestic battle point.

Then try to install Emmet again, successfully!

Thank you for reading this article carefully. I hope the article "how to solve the problem that Sublime Package Control cannot be installed" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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