Jupyter Notebook 打不开

问题描述 投票:0回答:1

我是 Python 新手,在打开 Jupyter Notebook 时遇到了一些问题。 (通常我用 VS Code 学习)。

这里有一个错误:


\[E 2024-11-15 22:50:06.734 ServerApp\] Failed to write server-info to C:\\Users\\48608\\AppData\\Roaming\\jupyter\\runtime\\jpserver-4920.json: PermissionError(13, 'Permission denied')
Traceback (most recent call last):
File "C:\\Users\\48608\\anaconda3\\Scripts\\jupyter-notebook-script.py", line 10, in \<module\>
sys.exit(main())
^^^^^^
File "C:\\Users\\48608\\anaconda3\\Lib\\site-packages\\jupyter_server\\extension\\application.py", line 623, in launch_instance
serverapp.start()
File "C:\\Users\\48608\\anaconda3\\Lib\\site-packages\\jupyter_server\\serverapp.py", line 3119, in start
self.start_app()
File "C:\\Users\\48608\\anaconda3\\Lib\\site-packages\\jupyter_server\\serverapp.py", line 3023, in start_app
self.write_browser_open_files()
File "C:\\Users\\48608\\anaconda3\\Lib\\site-packages\\jupyter_server\\serverapp.py", line 2890, in write_browser_open_files
self.write_browser_open_file()
File "C:\\Users\\48608\\anaconda3\\Lib\\site-packages\\jupyter_server\\serverapp.py", line 2913, in write_browser_open_file
with open(self.browser_open_file, "w", encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: \[Errno 13\] Permission denied: 'C:\\Users\\48608\\AppData\\Roaming\\jupyter\\runtime\\jpserver-4920-open.html`

有人可以帮我吗? (我在论坛中搜索,但针对类似问题提出的解决方案现在对我来说太复杂了)

python anaconda jupyter
1个回答
0
投票

您看到的错误消息表明 Jupyter Notebook 由于“权限被拒绝”错误而无法写入特定文件。发生这种情况的原因有多种,例如系统上的权限设置或与其他进程的潜在冲突。确保您具有写入目录 C:\Users 8608\AppData\Roaming\jupyter 的适当权限 不定时

© www.soinside.com 2019 - 2024. All rights reserved.