【发布时间】:2021-05-09 18:16:28
【问题描述】:
我正在尝试使用此命令(根据https://plotly.com/python/getting-started/)安装 jupyterlab plotly 扩展:
jupyter labextension 安装 jupyterlab-plotly@4.14.3
我收到此错误:
An error occured.
ValueError: Please install Node.js and npm before continuing installation. You may be able to install Node.js from your package manager, from conda, or directly from the Node.js website (https://nodejs.org).
See the log file for details: /tmp/jupyterlab-debug-epx8b4n6.log
我没有在系统级别安装 Node.js,而是在使用 pip 的虚拟环境中安装。 Pip 列表同时显示 nodejs 0.1.1 和 npm 0.1.1 。我也在 jupyterlab 中使用 ipywidgets,它需要 nodejs 并且工作正常。
所以我有两个问题:
- 如何在虚拟环境中通过 pip nodejs 使用 plotlywidgets?
- pip nodejs和系统级Node.js有什么区别
【问题讨论】:
标签: python node.js pip plotly jupyter-lab