找不到 JupyterLab 应用程序资产

Yus*_*NIK 13 jupyter jupyter-lab

我刚刚在我的 MacBook 上使用 pip 下载了 jupyter lab。当我在终端上运行 jupyter lab 时,浏览器打开并出现以下错误:

JupyterLab 错误 JupyterLab 应用程序资产在“/opt/homebrew/Cellar/python@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab”中找不到,请运行jupyter lab build或使用其他应用程序目录

我可以毫无问题地运行 jupyter 笔记本。

注意:我可以通过运行来使用 jupyter labjupyter lab --code-mode

Kas*_*Sun 26

这个问题可以通过手动设置应用程序目录:jupyter lab --app-dir /opt/homebrew/share/jupyter/lab,替换/opt/homebrew为实际的自制程序路径来解决。

jupyterlab用pip3安装的时候遇到这个问题。

  • 这是永久修复的解决方案。运行“jupyter lab --generate-config”。然后使用文件的打印位置创建配置文件(例如“将默认配置写入:/Users/blabla/.jupyter/jupyter_lab_config.py”)。打开配置文件并将内容修改为 `c.LabApp.app_dir = '/opt/homebrew/share/jupyter/lab'`。就这样。@LukaBradeško (5认同)