使用Anaconda无法正常打开JupyterLab的问题

报错:

[W 2024-08-24 15:59:48.310 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[W 2024-08-24 15:59:48.326 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2024-08-24 15:59:49.135 ServerApp] Extension package panel.io.jupyter_server_extension took 0.8085s to import
[I 2024-08-24 15:59:49.143 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-08-24 15:59:49.147 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-08-24 15:59:49.151 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-08-24 15:59:49.155 ServerApp] notebook | extension was successfully linked.
[I 2024-08-24 15:59:49.473 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-08-24 15:59:49.473 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked.
[I 2024-08-24 15:59:49.515 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-08-24 15:59:49.517 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-08-24 15:59:49.517 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-08-24 15:59:49.520 LabApp] JupyterLab extension loaded from D:\Users\JackZhai\anaconda3\Lib\site-packages\jupyterlab
[I 2024-08-24 15:59:49.520 LabApp] JupyterLab application directory is D:\Users\JackZhai\anaconda3\share\jupyter\lab
[I 2024-08-24 15:59:49.522 LabApp] Extension Manager is 'pypi'.
[I 2024-08-24 15:59:49.523 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-08-24 15:59:49.528 ServerApp] notebook | extension was successfully loaded.
[I 2024-08-24 15:59:49.529 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded.
[I 2024-08-24 15:59:49.529 ServerApp] Serving notebooks from local directory: C:\Users\JackZhai
[I 2024-08-24 15:59:49.530 ServerApp] Jupyter Server 2.14.1 is running at:
[I 2024-08-24 15:59:49.530 ServerApp] http://localhost:8888/lab?token=8a015abc39f74657dba4e54bd0f0290992386300a05e5e56
[I 2024-08-24 15:59:49.530 ServerApp] http://127.0.0.1:8888/lab?token=8a015abc39f74657dba4e54bd0f0290992386300a05e5e56
[I 2024-08-24 15:59:49.530 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 2024-08-24 15:59:49.530 ServerApp] Failed to write server-info to C:\Users\JackZhai\AppData\Roaming\jupyter\runtime\jpserver-31168.json: PermissionError(13, 'Permission denied')
Traceback (most recent call last):
File "D:\Users\JackZhai\anaconda3\Scripts\jupyter-lab-script.py", line 10, in 
sys.exit(main())
^^^^^^
File "D:\Users\JackZhai\anaconda3\Lib\site-packages\jupyter_server\extension\application.py", line 623, in launch_instance
serverapp.start()
File "D:\Users\JackZhai\anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 3119, in start
self.start_app()
File "D:\Users\JackZhai\anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 3023, in start_app
self.write_browser_open_files()
File "D:\Users\JackZhai\anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 2890, in write_browser_open_files
self.write_browser_open_file()
File "D:\Users\JackZhai\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\\JackZhai\\AppData\\Roaming\\jupyter\\runtime\\jpserver-31168-open.html'

解决方法:

在文件资源管理器中找到 C:\Users\用户\AppData\Roaming\jupyter文件夹,右键点击属性,将只读勾去,保存确定,重新打开即可解决问题。

  • 6
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值