斯皮德:"An error ocurred while starting the kernel"错误。原因是什么?我该如何解决?


  • Python 3.8 版本
  • 视窗 10

启动内核时出错

错误是:

Traceback (most recent call last):
File "D:anaconda3libsite‑packagesspyderpluginsipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle)
File "D:anaconda3libsite‑packagesjupyter_clientmanager.py", line 240, in start_kernel
self.write_connection_file()
File "D:anaconda3libsite‑packagesjupyter_clientconnect.py", line 547, in write_connection_file
kernel_name=self.kernel_name
File "D:anaconda3libsite‑packagesjupyter_clientconnect.py", line 212, in write_connection_file
with secure_write(fname) as f:
File "D:anaconda3libcontextlib.py", line 112, in __enter__
return next(self.gen)
File "D:anaconda3libsite‑packagesjupyter_clientconnect.py", line 102, in secure_write
with os.fdopen(os.open(fname, open_flag, 0o600), mode) as f:
PermissionError: [Errno 13] Permission denied: 'C:\Users\MEHMET\AppData\Roaming\jupyter\runtime\kernel‑a8750a464663.json'

(Spyder维护者在这里(这是由jupyter_client包中错误实现的功能引起的问题,并通过在Anaconda提示符中执行conda update --all来修复。

这种错误

PermissionError: [Errno 13] Permission denied: 

通常是因为您需要以管理员身份运行脚本

最新更新