更新 spyder3 后,我无法连接到内核

更新 spyder3 后,我无法连接到内核

我无法连接到 spyder 上的内核,并且在更新 spider3 后收到“启动内核时发生错误”的提示。顺便说一句,我不使用 Anaconda 或其他东西。我的操作系统是 ubuntu 18.04。帮帮我 :)

启动内核时发生错误错误是:

Traceback (most recent call last):

File "/usr/local/lib/python3.6/dist‑packages/spyder/plugins/ipythonconsole.py", line 1572, in create_kernel_manager_and_kernel_client
kernel_manager.start_kernel(stderr=stderr_handle)

File "/home/kaan/.local/lib/python3.6/site‑packages/jupyter_client/manager.py", line 240, in start_kernel
self.write_connection_file()

File "/home/kaan/.local/lib/python3.6/site‑packages/jupyter_client/connect.py", line 472, in write_connection_file
kernel_name=self.kernel_name

File "/home/kaan/.local/lib/python3.6/site‑packages/jupyter_client/connect.py", line 137, in write_connection_file
with open(fname, 'w') as f:

PermissionError: [Errno 13] Permission denied: '/home/kaan/.local/share/jupyter/runtime/kernel‑be2c68f640ce.json'

答案1

这里的问题是关于权限的。

因此,为了解决这个问题,我使用 更改了该目录的所有权sudo chown systemname /path

注意,这里不是系统名称, 这将是卡恩并且路径将是 /home/kaan/.local/share/jupyter/runtime/

相关内容