在 anaconda 中更新 Spyder 后出现内核错误 [重复]

2024-03-14

我将 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

我遇到了同样的问题,我使用 Anaconda Navigator 启动 Spyder,而不是仅调用 Spider(桌面图标),并且它有效。

不知何故,在 Anaconda Navigator 外部调用 Spyder 的逻辑会错过 Anaconda Navigator 不会错过的东西。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 anaconda 中更新 Spyder 后出现内核错误 [重复] 的相关文章

随机推荐