Windows 10 Jupyter Notebook中的内核错误(Errno 13权限被拒绝) [英] Kernel error (Errno 13 Permission denied) in Jupyter Notebook, Windows 10

查看:600
本文介绍了Windows 10 Jupyter Notebook中的内核错误(Errno 13权限被拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows 10上安装了Jupyter Notebook.我可以执行jupyter Notebook命令.它打开并显示当前路径目录的列表.我也可以创建或打开笔记本.但是,当我这样做时,我会在右上角看到内核错误.单击它后,将出现以下窗口:

I have installed Jupyter Notebook on Windows 10. I can execute jupyter notebook command. It opens and shows a list of current path directories. I also can create or open a notebook. But when I do it I get Kernel error in the top right corner. After clicking on it this window appears:

无法启动内核

Failed to start the kernel

未处理的错误

Traceback (most recent call last):
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\web.py", line 1699, in _execute
    result = await result
  File "c:\users\lola\appdata\local\programs\python\python35\lib\asyncio\futures.py", line 383, in __iter__
    return self.result()  # May raise too.
  File "c:\users\lola\appdata\local\programs\python\python35\lib\asyncio\futures.py", line 294, in result
    raise self._exception
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\notebook\services\sessions\handlers.py", line 72, in post
    type=mtype))
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "c:\users\lola\appdata\local\programs\python\python35\lib\asyncio\futures.py", line 294, in result
    raise self._exception
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "c:\users\lola\appdata\local\programs\python\python35\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\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "c:\users\lola\appdata\local\programs\python\python35\lib\asyncio\futures.py", line 294, in result
    raise self._exception
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 742, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "c:\users\lola\appdata\local\programs\python\python35\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\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 735, in run
    value = future.result()
  File "c:\users\lola\appdata\local\programs\python\python35\lib\asyncio\futures.py", line 294, in result
    raise self._exception
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\tornado\gen.py", line 209, in wrapper
    yielded = next(result)
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\jupyter_client\multikernelmanager.py", line 110, in start_kernel
    km.start_kernel(**kwargs)
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
    self.write_connection_file()
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\jupyter_client\connect.py", line 547, in write_connection_file
    kernel_name=self.kernel_name
  File "c:\users\lola\appdata\local\programs\python\python35\lib\site-packages\jupyter_client\connect.py", line 212, in write_connection_file
    with secure_write(fname) as f:
  File "c:\users\lola\appdata\local\programs\python\python35\lib\contextlib.py", line 59, in __enter__
    return next(self.gen)
  File "c:\users\lola\appdata\local\programs\python\python35\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\\Lola\\AppData\\Roaming\\jupyter\\runtime\\kernel-fd884f4e-8208-4b8e-9db2-c048f869e042.json'

文件中的代码不会以不同的颜色突出显示,运行时什么也没发生.

The code in my file is not highlighted in different colors and when I run it nothing happens.

我是编程的新手,所以请尝试以简单的语言给出建议,详细描述每个步骤.

I am new to programming, so please try to give advice in simple words, describing each step in detail.

过去,我曾尝试删除Python,安装其他版本的Python,然后安装Anaconda.另外,为了使用tensorflow,我创建了一个特殊的环境.但是此错误保持不变.我怀疑问题是路径中的双反斜杠("//"),但我绝对不知道如何解决此问题.但是也许问题出在其他地方.

In the past, I've tried to delete Python, install Python in different versions, install Anaconda. In addition, in order to work with tensorflow, I've created a special environment. But this error stays the same. I suspect the problem is a double backslash ("//") in the path, but I have absolutely no idea how to fix this. But perhaps the problem is something else.

推荐答案

此处存在完全相同的问题.对我有用的是以管理员身份运行Anaconda Navigator.希望它也对您有用.

Same exact problem here. What worked for me was running the Anaconda Navigator as an Administrator. Hope it works for you too.

这篇关于Windows 10 Jupyter Notebook中的内核错误(Errno 13权限被拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆