zoukankan      html  css  js  c++  java
  • 解决sublime无法安装软件的问题

      具体可参考:http://lostingz.github.io/sublime_channel/

      1.打开sublime,ctrl+shift+p打开窗口输入:Package Control: Add Channel

      输入sublime的channel为本页面下载channel json的路径即:https://raw.githubusercontent.com/lostingz/sublime_channel/gh-pages/channel_v3.json

      2.ctrl+shift+p 输入install 选择Package Control install 等待后输入或选择要安装的软件

      注:如果指定channel json 路径后提示 Schema的的版本不对(schema is not a valid number) 卸载原来的package control插件,重新安装新版本即可

      卸载指定插件方法:
    1. 选择 the Preferences > Settings – User
    2. "ignored_packages"中删除"Package Control" 项(如果有删除,没有不管)
    3. 选择 Preferences > Browse Packages(浏览程序包)…
    4. 删除 Package Control文件夹
    5. 返回上一级到 Installed Packages文件夹
    6. 删除 Package Control.sublime-package 文件(如果有删除,没有不管)
    7. 重新安装 Package Control

      安装方法一:

      sublime text3:

      import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')

      sublime text2:

      import urllib2,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
      安装方法二:
      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
  • 相关阅读:
    ubuntu下ssh服务相关操作
    搜索引擎的基础-倒排索引
    mysql重置密码
    mysql 服务器配置
    Activiti如何替换已部署流程图
    循环select查询结果集
    存储过程范例,有输入输出参数,带回滚
    sql server中字符串无法替换空格的问题
    Myeclipse实用快捷键总结
    Linux中添加用户与删除用户
  • 原文地址:https://www.cnblogs.com/birkhoff/p/5498880.html
Copyright © 2011-2022 走看看