Plotly 4.9.0的Jupyterlab扩展安装失败

2024-05-21 02:18:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用Plotly网站Instructions中的说明安装Plotly,以便在Jupyter实验室环境中使用。我正在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"

我还使用以下方式安装了NodeJ:

conda install nodejs

但是当需要做Jupyter实验室的特定工作时,这就失败了

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的nodejs包。如果我去NPM站点,我可以找到包jupyterlab-plotly,它表明它是版本4.9.0

我不清楚我哪里出错了。是否有人成功地遵循了这些步骤,并在Jupyter实验室环境中正常工作


Tags: installhttpslogpackagefornpmjupyterplotly
1条回答
网友
1楼 · 发布于 2024-05-21 02:18:21

我用最新的plotly 4.10再次尝试了这个过程,但遇到了同样的问题。不过,我刚刚把这一切都做好了。不同的是,与以前所有失败的尝试,我是在我们的公司网络运行。当我只通过我们的VPN连接时,它工作了。所以这两者之间有某种防火墙上的区别,我将试图加以区分

相关问题 更多 >