English 中文(简体)
Fail as Not 瓦莱德国家预防机制一揽子计划
原标题:Jupyter Extension Installs Fail as Not Valid NPM Package

我正试图将Jupyter Plotly延伸到他们的directions,见JupyterLab Support(Python 3.5+)。 但是,所列任何包裹的安装没有ValueError...有效包装<>。 在全面披露方面,这是我的第一个填补员额。 如果信息缺失,请让我知道。 我是一位使用沙尔的工程师,不是有人在基本工具中深.。

<>System

  • Windows 10
  • Python 3.7.5
  • node 12.13.0
  • npm 6.9.0

我不知道这是否相关,但我正试图用假环境来安装。 在试图安装推广设施之前,我做了些什么(beware:没有任何想法是最佳的做法)。

  • Created folder for python environments folder (>c:projectspythonenvironments)
  • In new folder, created jupyterLab environment (>python -m venv jupyterLab)
  • Started shell (>jupyterLabScriptsactivate.bat)
  • Installed Jupyter Lab (>*pip install jupyter lab)
  • Verified Jupyter Lab opens and works

下一步 我试图安装地皮延伸,因为图象不是这样。

www.un.org/Depts/DGACM/index_spanish.htm 指挥线入口

http://www.jupyter-widatess/

<>Result>

/cdn-cgi/l/email-protection”__cf_email_" data-cfemail="335946434a4756415f52511e525d525254564173021d03>[电子邮箱: Protect] 不是有效的Npm Pack/em>

我发现这一错误,无论我试图从Plotly方向安装包裹或版本。

www.un.org/Depts/DGACM/index_spanish.htm 页: 1

  • Python 3.8.0
  • Uninstalled and reinstalled nodejs and npm
  • Rolled back Juptyer Labs to v 1.0.0
  • Rolled back NPM to various versions from 6.7 through 6.13
  • Checked that nodejs in path (suggested in a forum)
  • Check that C:Users{myUserId}AppDataRoaming pm was in path (suggested in a forum)
  • Good-ole standby...restarted computer

www.un.org/Depts/DGACM/index_spanish.htm 后勤产出

Node v12.13.0

C:Program Files
odejs
pm.CMD" pack @jupyter-widgets/[email protected] notice
npm notice package: @jupyter-widgets/[email protected]
npm notice === Tarball Contents === 
npm notice 2.3kB  package.json        
npm notice 1.5kB  LICENSE             
npm notice 1.9kB  README.md           
npm notice 277B   lib/index.d.ts      
npm notice 380B   lib/index.js        
npm notice 5.4kB  lib/manager.d.ts    
npm notice 14.0kB lib/manager.js      
npm notice 1.9kB  lib/output.d.ts     
npm notice 5.2kB  lib/output.js       
npm notice 830B   lib/plugin.d.ts     
npm notice 6.7kB  lib/plugin.js       
npm notice 956B   lib/renderer.d.ts   
npm notice 3.3kB  lib/renderer.js     
npm notice 216B   lib/semvercache.d.ts
npm notice 862B   lib/semvercache.js  
npm notice 375B   schema/plugin.json  
npm notice === Tarball Details === 
npm notice name:          @jupyter-widgets/jupyterlab-manager         
npm notice version:       1.0.3                                       
npm notice filename:      jupyter-widgets-jupyterlab-manager-1.0.3.tgz
npm notice package size:  11.8 kB                                     
npm notice unpacked size: 46.2 kB                                     
npm notice shasum:        48f60ba3224327a7af21aef0edf9400202c3f34f    
npm notice integrity:     sha512-/VNnECOfq731D[...]wRYjB2nuNGpeg==    
npm notice total files:   16                                          
npm notice 
jupyter-widgets-jupyterlab-manager-1.0.3.tgz

Traceback (most recent call last):

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlabdebuglog.py", line 47, in debug_logging
    yield

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlablabextensions.py", line 82, in start
    ans = self.run_task()

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlablabextensions.py", line 103, in run_task
    for arg in self.extra_args

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlablabextensions.py", line 103, in <listcomp>
    for arg in self.extra_args

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlabcommands.py", line 316, in install_extension
    return handler.install_extension(extension)

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlabcommands.py", line 517, in install_extension
    info = self._install_extension(extension, tempdir)

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlabcommands.py", line 1373, in _install_extension
    info = self._extract_package(extension, tempdir)

  File "c:projectspythonenvironmentsjupyterlabslibsite-packagesjupyterlabcommands.py", line 1444, in _extract_package
    raise ValueError(msg % source)

ValueError: "@jupyter-widgets/[email protected]" is not a valid npm package

Exiting application: jupyter

任何帮助都将受到高度赞赏。 感谢!

问题回答

这是一个老问题,但如果任何其他人都遇到同样的问题,则:

我还有一个试图安装jupyterlab/toc的类似问题。 最后,我的问题似乎是由我的公司注册公司解决方案造成的,而I公司外出的注册公司在没有任何问题的情况下能够安装展期。

如果你不单是能够离职,那么你可能会在找到解决办法的灵感。 对我来说,这令我感到欣慰,但当时我与游民有着同样的问题,而不是解决我刚才gged倒的浮雕。

我认为,你可以首先尝试“@jupyter-widgets/jupyterlab-manager”。 如果无法工作,你可操作<代码>jupyter labextension list,并在延期中删除植被 t。

我在当地发展这一延伸,总是出现错误。 我的系统是MacOS。 但我认为你可以尝试。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...