Spyder:启动内核时发生错误

时间:2019-11-22 18:48:34

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

在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'

2 个答案:

答案 0 :(得分:1)

(此处为 Spyder维护程序)要解决此问题,请打开Anaconda Prompt并在其中运行

WebView(
  initialUrl: Uri.dataFromString(myHtml, mimeType: 'text/html').toString(),
)

答案 1 :(得分:0)

打开防火墙并以管理员身份运行spyder。