問題描述
我通過(conda update spyder)在anaconda中將spyder更新到了4.1,除非我從anaconda提示符打開,否則它不起作用,否則會(huì)顯示這個(gè)錯(cuò)誤:
I updated spyder to 4.1 in anaconda through (conda update spyder), and it doesn't work unless I open it from the anaconda prompt, otherwise it shows this error:
啟動(dòng)內(nèi)核時(shí)發(fā)生錯(cuò)誤錯(cuò)誤是:
An error ocurred while starting the kernel The error is:
Traceback(最近一次調(diào)用最后一次):
Traceback (most recent call last):
文件C:UsersanwarAnaconda3libsite-packagesspyderpluginsipythonconsoleplugin.py",第 1209 行,在 create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle, **kwargs)
File "C:UsersanwarAnaconda3libsite?packagesspyderpluginsipythonconsoleplugin.py", line 1209, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle, **kwargs)
文件C:UsersanwarAnaconda3libsite?packagesjupyter_clientmanager.py",第 267 行,在 start_kernel
self.kernel = self._launch_kernel(kernel_cmd, env=env, **kw)
File "C:UsersanwarAnaconda3libsite?packagesjupyter_clientmanager.py", line 267, in start_kernel
self.kernel = self._launch_kernel(kernel_cmd, env=env, **kw)
文件C:UsersanwarAnaconda3libsite?packagesjupyter_clientmanager.py",第 211 行,在 _launch_kernel
返回launch_kernel(kernel_cmd, **kw)
File "C:UsersanwarAnaconda3libsite?packagesjupyter_clientmanager.py", line 211, in _launch_kernel
return launch_kernel(kernel_cmd, **kw)
文件C:UsersanwarAnaconda3libsite?packagesjupyter_clientlauncher.py",第 135 行,在 launch_kernel
proc = Popen(cmd, **kwargs)
File "C:UsersanwarAnaconda3libsite?packagesjupyter_clientlauncher.py", line 135, in launch_kernel
proc = Popen(cmd, **kwargs)
文件C:UsersanwarAnaconda3libsubprocess.py",第 775 行,在 init 中restore_signals, start_new_session)
File "C:UsersanwarAnaconda3libsubprocess.py", line 775, in init restore_signals, start_new_session)
文件C:UsersanwarAnaconda3libsubprocess.py",第 1178 行,在 _execute_child 中啟動(dòng)信息)
File "C:UsersanwarAnaconda3libsubprocess.py", line 1178, in _execute_child startupinfo)
FileNotFoundError: [WinError 2] 系統(tǒng)找不到指定的文件
FileNotFoundError: [WinError 2] The system cannot find the file specified
在角落里,它仍然顯示 spyder 3.7
and in the corner, it still shows spyder 3.7
推薦答案
(這里是 Spyder 維護(hù)者) 這個(gè)問題是 此問題,它已在我們于 2020 年 3 月 19 日發(fā)布的 4.1.1 中修復(fù).
(Spyder maintainer here) This problem is a duplicate of this issue and it is fixed in our 4.1.1, released in March 19th 2020.
這篇關(guān)于更新到 Spyder 4.1 后出現(xiàn)內(nèi)核錯(cuò)誤的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!