Spyder和Jupyter Notebook中的内核错误

我尝试使用Anaconda Navigator,但出现此内核错误。

我以前没有安装Anaconda的情况下安装了python 3.8,并使用pip在其中安装了jupyter,然后我将其卸载并再次安装了Anaconda。

从那时起,每当我尝试编译文件甚至在jupyter笔记本中时,都会出现此错误。

我尝试过: 1.)重新安装Anaconda 2.)更新设置工具

这些都不起作用。

Traceback (most recent call last):
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\tornado\web.py",line 1699,in _execute
    result = await result
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\tornado\gen.py",line 742,in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\notebook\services\sessions\handlers.py",line 72,in post
    type=mtype))
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\tornado\gen.py",line 735,in run
    value = future.result()
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\tornado\gen.py",in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\notebook\services\sessions\sessionmanager.py",line 88,in create_session
    kernel_id = yield self.start_kernel_for_session(session_id,path,name,type,kernel_name)
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\tornado\gen.py",line 101,in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path,kernel_name=kernel_name)
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\tornado\gen.py",line 209,in wrapper
    yielded = next(result)
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\notebook\services\kernels\kernelmanager.py",line 168,in start_kernel
    super(MappingKernelManager,self).start_kernel(**kwargs)
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\jupyter_client\multikernelmanager.py",line 110,in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\jupyter_client\manager.py",line 240,in start_kernel
    self.write_connection_file()
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\jupyter_client\connect.py",line 547,in write_connection_file
    kernel_name=self.kernel_name
  File "C:\Users\DELLL\Anaconda3\lib\site-packages\jupyter_client\connect.py",line 212,in write_connection_file
    with secure_write(fname) as f:
  File "C:\Users\DELLL\Anaconda3\lib\contextlib.py",line 112,in __enter__
    return next(self.gen)
  File "C:\Users\DELLL\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\\DELLL\\AppData\\Roaming\\jupyter\\runtime\\kernel-4058ed7c-98d6-40c9-8b3b-2cbb069740d8.json'

a932182372 回答:Spyder和Jupyter Notebook中的内核错误

问题已解决。

问题:

在使用python 3.8时,我以前使用pip install安装了jupyter。 现在,我卸载了python 3.8并安装了Anaconda。再次重新安装了jupyter,因此是问题的原因。

要解决此问题,我使用conda uninstall jupyter从AnacondaPrompt卸载了jupyter,然后这次从conda install jupyter重新安装了它。 这样就解决了内核错误。

,

这是该特定文件夹的权限问题 设置环境路径变量C:\ Users \ DELL \ AppData \ Roaming \ jupyter \ runtime

授予权限,它将起作用

本文链接:https://www.f2er.com/3035891.html

大家都在问