sublime text3 安装package control 出现问题解决过程记录

1、安装package control 失败

通过最简单的自动安装 package control 失败(详见package control官网).

报错展示:

File "./python3.3/urllib/request.py", line 1248, in do_open

........

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "./python3.3/urllib/request.py", line 156, in urlopen

.........

解决方式:显然自动安装已经不行,按照官网进行手动安装即可。

If for some reason the console installation instructions do not work for you (such as having a proxy on your network), perform the following steps to manually install Package Control:

  1. Click the Preferences > Browse Packages… menu
  2. Browse up a folder and then into the Installed Packages/folder
  3. Download Package Control.sublime-package and copy it into the Installed Packages/ directory
  4. Restart Sublime Text

2、不能进行package control:install package,以及后续插件安装

报错展示:

Package Control: Unable to download https://packagecontrol.io/channel_v3.jsonafter 3 attempts

Emmet: No need to update PyV8
Package Control: Skipping automatic upgrade, last run at 2019-02-26 18:03:18, next run at 2019-02-26 19:03:18 or after
Package Control: Unable to download  https://packagecontrol.io/channel_v3.jsonafter 3 attempts
Unable to open /Users/yoowei/Library/Application Support/Sublime Text 3/Packages/Package Control/Package Control.sublime-settings
Detected ASCII vs Undefined with 100% confidence
 

* 下载Package Control手动安装(详见第一个问题)
* ***下载channel_v3.json,记事本打开,找到"schema_version": "3.0.0".把3.0.0改成2.0,保存
* 把channel_v3.json放到一个安全不会被删除的目录下。
* subline菜单栏中的prefrences->package setting->Package control->setting-user。在{}中加入
"channels":
[
"channel_v3的存放目录完整路径"
],
* 保存后,ctrl+shift+p,正常安装就成了。
之前安装失败原因:channel_v3.json被墙了,无法下载下来。

完美解决!

转载于:https://www.cnblogs.com/richard-youth/p/10443181.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值