前一天关机前都没问题,第二天再打开Anaconda Navigator就报错了,网上搜了一下解决方法,在此记录一下。
报错内容:
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\psutil\_pswindows.py", line 636, in wrapper
return fun(self, *args, **kwargs)
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\psutil\_pswindows.py", line 706, in cmdline
ret = cext.proc_cmdline(self.pid)
PermissionError: [WinError 5] 拒绝访问。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\app\start.py", line 113, in start_app
if misc.load_pid() is None: # A stale lock might be around
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\anaconda_navigator\utils\misc.py", line 384, in load_pid
cmds = process.cmdline()
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\psutil\__init__.py", line 721, in cmdline
return self._proc.cmdline()
File "C:\Users\\AppData\Local\Continuum\anaconda3\lib\site-packages\psutil\_pswindows.py", line 639, in wrapper
raise AccessDenied(self.pid, self._name)
psutil.AccessDenied: psutil.AccessDenied (pid=5136)
解决方法:
1)使用管理员运行:conda prompt
2)执行命令 conda update anaconda-navigator
3)还是不行就试试命令:anaconda-navigator --reset
原博主第二步没成功,用了第三步。俺也一样。升级没动静,干脆直接reset就OK了。
参考链接:https://www.jianshu.com/p/9a15a658789e