python - 扩展安装错误: Please install nodejs 5+ and npm before continuing installation

标签 python node.js windows

尝试在 jupyterlab 中嵌入 Bokeh 图。我使用了他们推荐的代码(如下)

jupyter labextension 安装@jupyter-widgets/jupyterlab-manager,jupyter labextension 安装@bokeh/jupyter_bokeh

Error: File "", line 1 jupyter labextension install @jupyter-widgets/jupyterlab-manager ^ SyntaxError: invalid syntax

然后使用 jupyterlab 扩展管理器,我再次尝试安装 jupyterlab-manager 但随后 错误:请在继续安装之前安装 nodejs 5+ 和 npm。 Nodejs 可以使用 conda 或直接从 Nodejs 网站安装。

然后我尝试安装 NodeJS,然后使用 pip install Nodejs 和 npm 进行轮转,但无济于事。重复出现同样的错误

Error: Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website

我使用pip install jupyter-bokeh安装了bokeh,并且我正在使用jupyterlab。我没有使用 conda 。并且操作系统是windows

我是编程新手。您的逐步解决方案将受到高度赞赏。

最佳答案

  1. 首先安装node.js,如果您使用的是conda或brew,则可以通过 一台苹果电脑。
  2. 验证安装。
  3. 安装扩展

brew install node
node -v
jupyter labextension install @jupyter-widgets/jupyterlab-manager 

关于python - 扩展安装错误: Please install nodejs 5+ and npm before continuing installation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61888748/

相关文章:

node.js - 如何使用 nvm 安装 Node 9?

python - 在 Ubuntu 上安装 Python 镜像库 (PIL)

python - Django,抓取 : What's the best way to detect "changes" while scraping?

node.js - 从 JSON 文件读取并解析原始数据

windows - 在 Windows 上使用 SSH 的 Git

windows - 每行具有完整路径的递归 Cmd Dir

c# - 是否有事件让我知道 SD 卡是否已安装?必须复制数百张卡片

python - Python 中的生物形态实现

python - 更改导入顺序会导致 Python 中的错误

javascript - 可以在 Express 中使用多个 View 引擎和多个 View 文件夹吗?