问题描述
我正在尝试根据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 [email protected]
An error occured.
ValueError: "[email protected]" 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 [email protected]
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 [email protected]
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站点,则可以找到表明其版本为4.9.0的软件包jupyterlab-plotly。
我不清楚我哪里出错了。是否有人成功地遵循了这些步骤,并密谋在Jupyter Lab环境中正常工作?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)