gpt4 book ai didi

python - Jupyter Notebook、Windows 10 中的内核错误(Errno 13 权限被拒绝)

转载 作者:行者123 更新时间:2023-11-28 17:56:11 26 4
gpt4 key购买 nike

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

Failed to start the kernel

Unhandled error

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'

我文件中的代码没有以不同的颜色突出显示,当我运行它时没有任何反应。

我是编程新手,所以请尽量用简单的语言给出建议,详细描述每个步骤。

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

最佳答案

同样的问题在这里。对我有用的是以管理员身份运行 Anaconda Navigator。希望它也对你有用。

关于python - Jupyter Notebook、Windows 10 中的内核错误(Errno 13 权限被拒绝),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58174067/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com