【问题标题】:Spyder :Error ocurred while starting the kernelSpyder:启动内核时发生错误
【发布时间】:2023-11-05 06:36:01
【问题描述】:

在 Spyder 中启动内核时发生错误

错误是:

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

【问题讨论】:

    标签: python-3.x error-handling anaconda kernel spyder


    【解决方案1】:

    这里是 Spyder 维护者)要解决这个问题,请打开 Anaconda Prompt 并在那里运行

    conda update --all
    

    【讨论】:

      【解决方案2】:

      关闭防火墙并以管理员身份运行 spyder。

      【讨论】:

        最近更新 更多