更新Anaconda中的Spyder后出现内核错误

5

我把Spyder更新到了4.1.0版本(和Anaconda里的其他包一起)。Spyder本身可以正常运行,但是内核无法工作。我遇到了以下错误,不知道该如何解决:

An error ocurred while starting the kernel
The error is:

Traceback (most recent call last):
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole\plugin.py", line 1209, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle, **kwargs)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\manager.py", line 267, in start_kernel
self.kernel = self._launch_kernel(kernel_cmd, env=env, **kw)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\manager.py", line 211, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\site‑packages\jupyter_client\launcher.py", line 135, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "C:\Users\20172010\AppData\Local\Continuum\anaconda3\lib\subprocess.py", line 1207, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

1
我也遇到了同样的问题,不得不降级到4.0.1版本(这解决了问题)。我还尝试过恢复出厂设置,但没有帮助。我不确定你所说的图形化启动Spyder是什么意思,但应该有一个通用的解决方案。 - Forinstance
例如,可以通过Anaconda Navigator实现。 - ReneBt
4.1 的开端不太好... 4.0.1 经常无法预测地崩溃,让我们看看这个版本会怎样。 - ReneBt
3个回答

4

我曾经遇到同样的问题,后来我改用Anaconda Navigator启动Spyder,而不是仅仅通过桌面图标打开Spyder,这样就解决了问题。

不知道为什么,直接调用Spyder好像少了一些Anaconda Navigator所具有的东西。


2

所以,如果我从Anaconda菜单图形化地启动Spyder,它就能正常工作(这解决了问题)。


1
下面的链接中提到他们正在努力尽快推出spyder 4.1.1。
同时,您有两个选择:
  • 通过Navigator或提示运行spyder 4.1.0(如先前所述)
  • 在Navigator中执行回滚到4.0.1
链接:https://github.com/spyder-ide/spyder/issues/11819

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接