【问题标题】:JupyterLab application assets not found未找到 JupyterLab 应用程序资产
【发布时间】:2022-11-14 01:07:54
【问题描述】:

我刚刚在我的 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 notebook。

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

【问题讨论】:

  • 你也使用pyenv吗?
  • 不,我没有使用 pyenv,没有安装它。
  • 我有一个类似的问题。问题是 jupyter 配置了一个不存在的虚拟环境。将jupyter --paths 的输出与当前Python 解释器which python3 的位置进行比较。您可能会看到“config”下的路径与解释器的位置不同。
  • 我相信这就是原因。现在我使用 conda 进行环境管理,我不再有这个问题了。 python3 和 jupyter 路径都在 anaconda 文件夹中。谢谢你解释原因

标签: jupyter jupyter-lab


【解决方案1】:

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

使用 pip3 安装 jupyterlab 时遇到此问题。

【讨论】:

    【解决方案2】:

    请改为运行conda install jupyterlab。我在 miniforge (https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-arm64.sh) 上试过了,它成功了。

    【讨论】:

      猜你喜欢
      • 2015-08-29
      • 2011-06-06
      • 2013-06-30
      • 1970-01-01
      • 2018-12-25
      • 2015-07-22
      • 1970-01-01
      • 2021-01-14
      • 2014-12-12
      相关资源
      最近更新 更多