内核错误[无法启动内核]

时间:2019-09-30 16:56:16

标签: python kernel jupyter

我是jupyter笔记本的新手。尝试使新的嫉妒,但它只会产生内核错误。

我曾尝试安装新内核,但与此无关。

Traceback (most recent call last):
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\web.py", line 1699, in _execute
    result = await result
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
    type=mtype))
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\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\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\notebook\services\sessions\sessionmanager.py", line 101, in start_kernel_for_session
    self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\tornado\gen.py", line 209, in wrapper
    yielded = next(result)
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
    self.write_connection_file()
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\jupyter_client\connect.py", line 547, in write_connection_file
    kernel_name=self.kernel_name
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\site-packages\jupyter_client\connect.py", line 212, in write_connection_file
    with secure_write(fname) as f:
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\lib\contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "C:\Users\Hawarie\Anaconda3\envs\hawarie_env\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\\Hawarie\\AppData\\Roaming\\jupyter\\runtime\\kernel-be38d53a-3dcf-4aca-8395-93f556611cac.json'

1 个答案:

答案 0 :(得分:0)

在您的日志上显示:

PermissionError: [Errno 13] Permission denied: 
'C:\\Users\\Hawarie\\AppData\\Roaming\\jupyter\\runtime\\kernel-be38d53a-3dcf-4aca-8395-
93f556611cac.json'

我假设您使用的是Windows,是否尝试过以管理员身份运行Anaconda?