折腾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!