未安装Jupter实验室扩展程序

时间:2020-06-25 01:44:35

标签: jupyter-lab

我尝试安装jupyter实验室扩展。像官方指南一样,我预先安装了nodejs模块。 我尝试了jupyterlab-manager和jupyterlab-variableInspector。但是,由于相同的原因,两者都无法安装。如果使用jupyterlab-manage扩展,我将收到以下错误消息。

(spyder) E:\data\OneDrive - korea.ac.kr\리치고\모델링\200608>jupyter labextension install @jupyter-widgets/jupyterlab-manager
Building jupyterlab assets (build:prod:minimize)
|Exception in thread Thread-10:
Traceback (most recent call last):
  File "C:\Users\user\anaconda3\envs\spyder\lib\threading.py", line 916, in _bootstrap_inner
    self.run()
  File "C:\Users\user\anaconda3\envs\spyder\lib\threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\user\anaconda3\envs\spyder\lib\subprocess.py", line 1083, in _readerthread
    buffer.append(fh.read())
UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 263: illegal multibyte sequence

An error occured.
IndexError: list index out of range
See the log file for details:  C:\Users\user\AppData\Local\Temp\jupyterlab-debug-1dovyiu_.log

这是完整的日志,可以在日志末尾找到

Node v14.4.0

Yarn configuration loaded.
> C:\Users\user\anaconda3\envs\spyder\npm.CMD pack @jupyter-widgets/jupyterlab-manager
npm notice 
npm notice package: @jupyter-widgets/jupyterlab-manager@2.0.0
npm notice === Tarball Contents === 
npm notice 1.5kB  LICENSE             
npm notice 380B   lib/index.js        
npm notice 15.3kB lib/manager.js      
npm notice 5.3kB  lib/output.js       
npm notice 7.8kB  lib/plugin.js       
npm notice 3.3kB  lib/renderer.js     
npm notice 862B   lib/semvercache.js  
npm notice 2.3kB  package.json        
npm notice 375B   schema/plugin.json  
npm notice 2.1kB  README.md           
npm notice 277B   lib/index.d.ts      
npm notice 6.0kB  lib/manager.d.ts    
npm notice 1.9kB  lib/output.d.ts     
npm notice 828B   lib/plugin.d.ts     
npm notice 960B   lib/renderer.d.ts   
npm notice 216B   lib/semvercache.d.ts
npm notice === Tarball Details === 
npm notice name:          @jupyter-widgets/jupyterlab-manager         
npm notice version:       2.0.0                                       
npm notice filename:      jupyter-widgets-jupyterlab-manager-2.0.0.tgz
npm notice package size:  13.3 kB                                     
npm notice unpacked size: 49.4 kB                                     
npm notice shasum:        05ab402833df07aac1ec2c549a1d748b3c303185    
npm notice integrity:     sha512-i+qtbEe//W9Ru[...]Fu0KbkxM9aQXQ==    
npm notice total files:   16                                          
npm notice 
jupyter-widgets-jupyterlab-manager-2.0.0.tgz

Node v14.4.0

Yarn configuration loaded.
Building jupyterlab assets (build:prod:minimize)
> node C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @lumino/coreutils@1.5.0" has unmet peer dependency "crypto@1.0.1".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 11.63s.

> node C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\staging\yarn.js yarn-deduplicate -s fewer --fail
yarn run v1.21.1
$ C:\Users\user\anaconda3\envs\spyder\share\jupyter\lab\staging\node_modules\.bin\yarn-deduplicate -s fewer --fail
Done in 0.34s.

> node C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\staging\yarn.js run build:prod:minimize
Traceback (most recent call last):

  File "C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
    yield

  File "C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\labextensions.py", line 105, in start
    command=command, app_options=app_options)

  File "C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\commands.py", line 460, in build
    command=command, clean_staging=clean_staging)

  File "C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\commands.py", line 657, in build
    ret = self._run(['node', YARN_PATH, 'run', command], cwd=staging)

  File "C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\commands.py", line 1752, in _run
    return proc.wait()

  File "C:\Users\user\anaconda3\envs\spyder\lib\site-packages\jupyterlab\commands.py", line 107, in wait
    out, _ = proc.communicate(timeout=.1)

  File "C:\Users\user\anaconda3\envs\spyder\lib\subprocess.py", line 863, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)

  File "C:\Users\user\anaconda3\envs\spyder\lib\subprocess.py", line 1133, in _communicate
    stdout = stdout[0]

IndexError: list index out of range

Exiting application: jupyter

0 个答案:

没有答案