【发布时间】:2020-08-25 15:04:11
【问题描述】:
我正在尝试使用 Plotly 网站 Instructions 中的说明安装 Plotly 以在 Jupyter Lab 环境中使用。我正在 Windows 10 操作系统上安装全新的 Anaconda 64 位安装。以下安装命令均正常运行
conda install -c plotly plotly=4.9.0
conda install "notebook>=5.3" "ipywidgets>=7.2"
conda install jupyterlab "ipywidgets=7.5"
我还使用以下方式安装了 nodejs:
conda install nodejs
但是当需要做 Jupyter Lab 特定的事情时,这会失败
jupyter labextension install jupyterlab-plotly@4.9.0
An error occured.
ValueError: "jupyterlab-plotly@4.9.0" is not a valid npm package
See the log file for details: C:\Users\tj\AppData\Local\Temp\jupyterlab-debug-cm_yk8nr.log
日志文件内容如下:
Node v10.13.0
Yarn configuration loaded.
> C:\Users\tj\Anaconda3\npm.CMD pack jupyterlab-plotly@4.9.0
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning SELF_SIGNED_CERT_IN_CHAIN: request to https://registry.npmjs.org/jupyterlab-plotly failed, reason: self signed certificate in certificate chain
npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for jupyterlab-plotly@4.9.0
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\tj\AppData\Roaming\npm-cache\_logs\2020-08-25T14_44_35_633Z-debug.log
所以对我来说,所有迹象都是它认为它找不到名为 jupyterlab-plotly 的 nodejs 包。如果我去 NPM 站点,我可以找到包 jupyterlab-plotly,它表明它的版本是 4.9.0。
我不清楚我哪里出错了。有没有人成功地遵循这些步骤并在 Jupyter Lab 环境中正常工作?
【问题讨论】:
标签: python anaconda jupyter-lab plotly-python