Spyder:“启动内核时发生错误”错误。什么原因 ?我该如何解决?

时间:2019-12-03 19:48:30

标签: python spyder

  • Python 3.8版本
  • Windows 10

启动内核时发生错误

错误是:

Traceback (most recent call last):
File "D:\anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle)
File "D:\anaconda3\lib\site‑packages\jupyter_client\manager.py", line 240, in start_kernel
self.write_connection_file()
File "D:\anaconda3\lib\site‑packages\jupyter_client\connect.py", line 547, in write_connection_file
kernel_name=self.kernel_name
File "D:\anaconda3\lib\site‑packages\jupyter_client\connect.py", line 212, in write_connection_file
with secure_write(fname) as f:
File "D:\anaconda3\lib\contextlib.py", line 112, in __enter__
return next(self.gen)
File "D:\anaconda3\lib\site‑packages\jupyter_client\connect.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'

2 个答案:

答案 0 :(得分:1)

(此处为 Spyder维护程序),这是由于jupyter_client软件包中实现不正确的功能导致的,并通过在Anaconda Prompt中执行conda update --all进行了修复。

>

答案 1 :(得分:-1)

这种错误

PermissionError: [Errno 13] Permission denied: 

通常是因为您需要以admin身份运行脚本