Anaconda Navigator 启动时出错

Posted

技术标签:

【中文标题】Anaconda Navigator 启动时出错【英文标题】:Anaconda Navigator Error when starting it 【发布时间】:2019-07-19 07:26:21 【问题描述】:

anaconda 导航器没有启动它说

 An unexpected error occurred on Navigator start-up

我刚开始anaconda navigator

它给出了导航错误

An unexpected error occurred on Navigator start-up

报告

Please report this issue in the anaconda issue tracker

主要错误

'root_prefix'
Traceback
Traceback (most recent call last):
  File "\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
    return_value = func(*args, **kwargs)
  File "\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 151, in start_app
    window = run_app(splash)
  File "\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 65, in run_app
    window = MainWindow(splash=splash, tab_project=False)
  File "\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 168, in __init__
    self.api = AnacondaAPI()
  File "\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 2337, in AnacondaAPI
    ANACONDA_API = _AnacondaAPI()
  File "\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 89, in __init__
    self._conda_api = CondaAPI()
  File "\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 1773, in CondaAPI
    CONDA_API = _CondaAPI()
  File "\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 350, in __init__
    self.set_conda_prefix(info=get_conda_info())
  File "\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 505, in set_conda_prefix
    self.ROOT_PREFIX = info['root_prefix']
KeyError: 'root_prefix'

Anaconda 导航器未启动

【问题讨论】:

【参考方案1】:

尝试重置 anaconda-navigator

anaconda-navigator --reset

【讨论】:

【参考方案2】:

我在运行 jupyter notebook 时遇到了这个错误 所以我卸载了jupyter notebook 然后安装它pip install jupyter notebook

【讨论】:

以上是关于Anaconda Navigator 启动时出错的主要内容,如果未能解决你的问题,请参考以下文章

Anaconda:Navigator启动时发生意外错误

Anaconda Navigator无法启动[关闭]

无法从 Anaconda Navigator (Windows) 启动 Jupyter Note

Anaconda 已安装但无法启动 Navigator

Anaconda-Navigator启动后闪退的解决方案(图文详解)

Anaconda-Navigator启动后闪退的解决方案(图文详解)