我刚刚在我的 MacBook 上使用 pip 下载了 jupyter lab。当我在终端上运行 jupyter lab 时,浏览器打开时出现以下错误:
JupyterLab 错误 JupyterLab 应用程序资产未在以下位置找到 “/opt/homebrew/Cellar/[电子邮件受保护]/3.10.6_2/Frameworks/Python.framework/Versions/3.10/share/jupyter/lab” 请运行
或使用不同的应用程序目录jupyter lab build
我可以毫无问题地运行jupyter笔记本。
注意:我可以通过运行
jupyter lab --code-mode
使用 jupyter lab
可以通过手动设置应用程序目录来解决:
jupyter lab --app-dir /opt/homebrew/share/jupyter/lab
,将/opt/homebrew
替换为实际的自制程序路径。
使用 pip3 安装
jupyterlab
时遇到此问题。
我尝试了“jupyter lab --core-mode”并且成功了。
请改为运行
conda install jupyterlab
。我用 miniforge (https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh) 尝试了一下,它成功了。