zoukankan      html  css  js  c++  java
  • anaconda navigator stuck 卡在 loading applications... 处理

    折腾anaconda升级

    问题

    更新anaconda 后启动 navigator 卡死
    查了好多方法不行,改装了其他版本也不行

    解决

    后来用cmd 执行命令 anaconda-navigator
    报错了:

    D:Anaconda3libsite-packagesanaconda_navigatorapiconda_api.py:1364: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
      data = yaml.load(f)
    Traceback (most recent call last):
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgetsmain_window.py", line 539, in setup
        self.post_setup(conda_data=conda_data)
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgetsmain_window.py", line 576, in post_setup
        self.tab_home.setup(conda_data)
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgets	abshome.py", line 169, in setup
        self.set_applications(applications, packages)
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgets	abshome.py", line 231, in set_applications
        non_conda=app.get('non_conda', False),
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgetslistsapps.py", line 199, in __init__
        to_text_string(self.version)
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgetslistsapps.py", line 539, in version
        version = self._vscode_version()
      File "D:Anaconda3libsite-packagesanaconda_navigatorwidgetslistsapps.py", line 507, in _vscode_version
        stderr = stderr.decode()
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 4: invalid continuation byte
    

    按提示找到源文件apps.py
    修改提示行处的错误

    stderr = stderr.decode('gbk')
    #stderr = stderr.decode()
    

    保存后重新执行cmd命令 anaconda-navigator

    OK!

  • 相关阅读:
    CobaltStrike上线Linux主机(CrossC2)
    Active-Directory活动目录备忘录
    CVE-2020-5902 F5 BIG-IP 远程代码执行漏洞复现
    SSTI-服务端模板注入漏洞
    powershell代码混淆绕过
    绕过PowerShell执行策略方法
    "dpkg: 处理归档 /var/cache/apt/archives/libjs-jquery_3.5.1+dfsg-4_all.deb (--unpack)时出错"的解决方法
    firda安装和使用
    内网渗透-跨域攻击
    Web-Security-Learning
  • 原文地址:https://www.cnblogs.com/bikaqiou2000/p/11827881.html
Copyright © 2011-2022 走看看