There are no packages available for installation error when sublime installs package control

How to install package control:

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)

This method, I failed. The reason is that he has an installation package that needs to be downloaded, but he doesn't know why the downloaded website cannot be accessed. So directly select the file to download.

There are only two files to download

Attach (borrow someone else’s package, you won’t upload it yourself)

Netdisk address: https://pan.baidu.com/s/1F40_3AzltmTC4IpsUEJT4Q

Extraction code: y436 

Drag the first file in the compressed package to the folder sublime\Data\Installed Packages . At this time, Prefences=>You can already see PackageControl and Package Setings.

Next, you can click Prefences=>Package Settings=>PackageControl=>Settings-Default to  see the cause of the error, as shown in the following figure:

The reason for the error is that this file was downloaded from a website that has been unable to open.

The solution is to modify the path in Prefences=>Package Settings=>PackageControl=>Settings-Use r.

Unzip the josn file in the above compressed package, find its path, and modify the file path of channels accordingly

{
	"bootstrapped": true,
	"channels":
	[
		"D:/sublime/channel_v3.json"
	]
}

If you keep getting an error at this step, try to modify the slash of the path, you can use the one I wrote above.

After completion, you can open Package Control to install the plug-in.

 

 

Guess you like

Origin blog.csdn.net/qq_40479037/article/details/88410599