gpt4 book ai didi

sublimetext3 - 安装 Sublime Text 3 Package Control bz2 时出错

转载 作者:行者123 更新时间:2023-12-04 08:24:35 24 4
gpt4 key购买 nike

我在印度的 ISP 出于某种原因决定阻止 Github。我一直在尝试手动安装 Sublime Text 3 的包控制并使用 Sublime Text 3 控制台。在这两种情况下,似乎都缺少一个依赖项:

Package Control: Installing 1 missing dependencies
Package Control: Attempting to use Urllib downloader due to WinINet error: Error downloading package. Host not found (errno 12007) during HTTP write phase of downloading https://codeload.github.com/codexns/sublime-bz2/zip/1.0.0.
Package Control: Error downloading package. URL error [Errno 11004] getaddrinfo failed downloading https://codeload.github.com/codexns/sublime-bz2/zip/1.0.0.
error: Package Control

Unable to download bz2. Please view the console for more details.
Package Control: Skipping automatic upgrade, last run at 2015-01-03 11:32:25, next run at 2015-01-03 12:32:25 or after
我已经手动下载了 Sublime bz2 文件,我现在应该怎么做?
编辑:
一些浏览内容告诉我 Package Control 3.0 有依赖项:
Once the package is extracted, a custom-generated python file is added to a special package named  
0_package_control_loader. For Sublime Text 3, this is a .sublime-package file, whereas for
Sublime Text 2 it is just a folder. The reason for the name (and creating it as a .sublime-
package file in ST3) is to ensure it is the very first non-default package that Sublime Text
loads.
有没有 0_package_control_loader.sublime-package的版本我可以手动添加(假设我已经安装了缺少此依赖项的包控制?

最佳答案

我遇到了和你一样的问题。下面是我解决的方法。

  • 尝试获取文件“sublime-bz2-1.0.0.zip”。 (看来你已经做到了);
  • 将其解压到目录“...\Application Data\Sublime Text 3\Packages\”并将子目录名称重命名为“bz2”。
  • 打开一个新的txt文件并将下面的代码粘贴到其中
      {"platforms": ["*"], "url": "https://github.com/codexns/sublime-bz2/issues";, "version": "1.0.0", "description": "Python bz2 module", "sublime_text": "*"}
  • 将文件保存到/bz2 并将其文件名重命名为“dependency-metadata.json”
    完成这些后,层次结构应该是这样的:
      /Package
    ├─/bz2
    │ ├─/st2_linux_x32
    │ ├─/st2_linux_x64
    │ ├─/st2_windows_x32
    │ ├─/st2_windows_x64
    │ ├─/st3_linux_x32
    │ ├─/st3_linux_x64
    │ ├─/st3_osx_x64
    │ ├─/st3_windows_x32
    │ ├─/st3_windows_x64
    │ └─dependency-metadata.json
    └─/User
    ├─/c2u_tmp
    └─/Package Control.cache
  • 重新启动 sublime text3。

  • 希望能帮助到你!

    问候

    关于sublimetext3 - 安装 Sublime Text 3 Package Control bz2 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27752282/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com