欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

sublime text 3 手动安装 package control

To manually install Package Control for Sublime Text 3, you can follow the steps provided below:

  1. Open Sublime Text 3: Launch Sublime Text 3 on your computer.

  2. Open Console: Press Ctrl + ` (backtick) or go to View -> Show Console from the menu to open the Sublime Text console.

  3. Copy Installation Code: Copy the Python code snippet provided on the Package Control website for manual installation. This code generally looks like the following:

    python
    import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5ddc9d3f9c3b' + '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)
    
    Open in:
  4. Paste and Run: Paste the copied Python code into the Sublime Text console and press Enter to run it.

  5. Restart Sublime Text: After running the code, restart Sublime Text 3.

Once you have completed these steps, Package Control should be installed and available for use in Sublime Text 3. You can then use Package Control to easily install and manage various packages and plugins for Sublime Text.

If you encounter any issues during the installation process or need further assistance, please feel free to ask.


报错 

Error validating download (got 817937144c34c84c88cd43b85318b2656f9c3fac02f8f72cbc18360b2c26d139 instead of 6f4c264a24d933ce70df5ddc9d3f9c3bebe013ee18cced0ef93d5f746d80ef60), please try manual install


照着它的提示 替换一下 试试

普通分类: