我正尝试使用这个命令安装jupyterlab plotly扩展程序(根据 https://plotly.com/python/getting-started/ ):
jupyter labextension install 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,并且它可以正常工作。
因此,我有两个问题:
- 如何在虚拟环境中使用plotlywidgets与pip nodejs?
- pip nodejs和系统级别Node.js有什么区别?