如何解决为Plotly 4.9.0安装Jupyterlab扩展程序失败
我正在尝试根据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站点,则可以找到表明其版本为4.9.0的软件包jupyterlab-plotly。
我不清楚我哪里出错了。是否有人成功地遵循了这些步骤,并密谋在Jupyter Lab环境中正常工作?
解决方法
我使用最新的4.10版本再次尝试了此过程,并且遇到了同样的问题。但是,我现在才开始工作。所不同的是,在以前的所有失败尝试中,我都是在公司网络内进行操作的。当我仅通过我们的VPN连接时,它起作用了。因此,我将尝试梳理两者之间的某种防火墙区别。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。