推荐大家从官网上下载安装吧,虽然需要破解一下,但是没有运行错误,我从360软件中心下载的安装过后有很多问题,如果有相同问题的同学可以参考一下。
一、安装
如果软件本身安装的package control报错,
There are no packages available for installation
解决方案:
我是直接卸载重装,Preferences(首选项)-->Browse Packages(浏览插件),备份后删掉package control包,上一层点击 install Installed Packages备份后删掉Package Control.sublime-package,再在官网上找到安装命令,ctrl+`打开命令行,复制
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)
安装即可
二、下载插件出现错误
Package Control: Attempting to use Urllib downloader due to WinINet error: Error downloading channel. Connection refused (errno 12029) during HTTP write phase of downloading https://packagecontrol.io/channel_v3.json.
解决方案:
手动下载该文件,放在本地进行引入,在Preferences > Package Settings > Package Control > Settings - User汉化版:首选项-插件设置-Package Control-用户设置中添加:
"channels":["D:/software/Sublime Text3/liuqr/channel_v3.json"]
三、在下载安装包时出现新的错误?
Package Control: Error downloading package. HTTP exception InvalidCertificateException (Host codeload.github.com returned an invalid certificate ([SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:548))) downloading https://codeload.github.com/shiyanhui/FileHeader/zip/2.0.5.
error: Package Control
网上查的解决方案是在Preferences > Package Settings > Package Control > Settings - User这里加配置:
"downloader_precedence":{"linux":["curl","urllib","wget"],"osx":["curl","urllib"],"windows":["wininet"]},
我这里修改了还是报错,最后还是手动下载了这个包放在了Preferences(首选项)-->Browse Packages(浏览插件)这个位置下,解压,重启
四、官网破解版,从官网上下载了v3.2.1 build 3207版本的,破解方法见这篇文章:
https://blog.csdn.net/alinathz/article/details/93885166
自己安装一下package control再下载插件就没有任何问题了