导航器启动中发生意外的错误
错误描述:
Navigator Error
An unexpected error occurred on Navigator start-up
Report
Please report this issue in the anaconda issue tracker
Main Error
expected str, bytes or os.PathLike object, not NoneType
Traceback
Traceback (most recent call last):
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 150, in start_app
window = run_app(splash)
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 65, in run_app
window = MainWindow(splash=splash, tab_project=False)
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\widgets\main_window.py", line 163, in init
self.api = AnacondaAPI()
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 2185, in AnacondaAPI
ANACONDA_API = _AnacondaAPI()
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 89, in init
self._conda_api = CondaAPI()
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 1714, in CondaAPI
CONDA_API = _CondaAPI()
File "C:\Users\ANGEL\Anaconda3\lib\site-packages\anaconda_navigator\api\conda_api.py", line 353, in init
self.sys_rc_path = join(self.ROOT_PREFIX, '.condarc')
File "C:\Users\ANGEL\Anaconda3\lib\ntpath.py", line 76, in join
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not NoneType
当电脑启动时,Anaconda闪退多次,然后跳出一个和上面信息相关的网页,着实让人很头大!!!!:-(
而且最重要的是,翻遍资料发现大多数博主提供的都是类似进行管理员权限的打开和更新操作
Windows下:
1)使用管理员运行:conda prompt
2)执行命令 conda update anaconda-navigator
3)还是不行就试试命令:anaconda-navigator --reset
悲剧的是,像我们这样的错误,在Prompt中,anaconda命令是不可以使用的。
废话不多说,上拯救办法!!!!!!
- 进去C盘,找到我们的User(用户)。
- 然后找到我们自己电脑的名称,一般是自己定义的。
- 往下拉,找到 .condarc 文件,然后大胆删除它,不会有影响的放心 :-)
- 关掉报错界面,从新启动 Anaconda Navigator !!
- Its Work? Right
到这儿,我们就已经攻克它了!让我们继续工作吧