【问题标题】:Install jupyter lab extension without Conda在没有 Conda 的情况下安装 jupyter lab 扩展
【发布时间】:2021-07-05 02:03:18
【问题描述】:

我正在尝试安装许多 jupyter 实验室扩展,但总是收到此错误:

ValueError: 请在继续安装之前安装 Node.js 和 npm。您可以从包管理器、conda 或直接从 Node.js 安装 Node.js。 js 网站 (https://nodejs.org)。

经过一点点挖掘,我发现我需要有nodejs和npm。但是,通过 pip 成功完全安装它们后,我仍然无法运行jupyter lab build。有人说是因为nodejs必须通过conda安装才能正常工作。

有没有人知道如何在无需安装 Conda 的情况下仍然让 nodejs 和 npm 工作?顺便说一句,我在 Windows 上运行。

【问题讨论】:

  • 扩展系统在 JupyterLab 3.0 中进行了重新设计,不再需要 nodejs/npm/jupyterlab 构建。只需升级到 3.0 并使用pip install 安装扩展。
  • 安装完NodeJS后,最好重启一下电脑。

标签: python node.js npm conda jupyter-lab


【解决方案1】:

我通过以下方式解决了这个问题:

  1. 在我的机器上安装Node.js (Windows)。
  2. 重新启动我的电脑。

在此之后,我能够在没有安装 conda 的情况下运行 jupyter labextension install

【讨论】:

    猜你喜欢
    • 2021-01-10
    • 2021-12-22
    • 1970-01-01
    • 2019-11-04
    • 2021-10-07
    • 2021-05-16
    • 2019-03-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多