Python 3.x JupyterLab赢得';不要安装一些扩展
每当我试图从jupyterlab上的扩展GUI安装jupyterlab statusbar或jupyterlab plyto时,我都会收到以下错误:Python 3.x JupyterLab赢得';不要安装一些扩展,python-3.x,jupyter-notebook,jupyter,jupyter-lab,Python 3.x,Jupyter Notebook,Jupyter,Jupyter Lab,每当我试图从jupyterlab上的扩展GUI安装jupyterlab statusbar或jupyterlab plyto时,我都会收到以下错误:错误:500(内部服务器错误) 我尝试使用jupyter labextension安装jupyter Lab statusbar从命令行安装它,但出现以下错误: An error occured. FileNotFoundError: [WinError 2] The system cannot find the file specified See
错误:500(内部服务器错误)
我尝试使用jupyter labextension安装jupyter Lab statusbar从命令行安装它,但出现以下错误:
An error occured.
FileNotFoundError: [WinError 2] The system cannot find the file specified
See the log file for details: C:\Users\Foo\AppData\Local\Temp\jupyterlab-debug-xbv5956n.log
以下是日志文件的内容:
Node v12.18.3
Yarn configuration loaded.
> "C:\Program Files\nodejs\npm.CMD" pack C:\Users\nonie
Traceback (most recent call last):
File "c:\python\lib\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
yield
File "c:\python\lib\site-packages\jupyterlab\labextensions.py", line 93, in start
ans = self.run_task()
File "c:\python\lib\site-packages\jupyterlab\labextensions.py", line 138, in run_task
return any([
File "c:\python\lib\site-packages\jupyterlab\labextensions.py", line 139, in <listcomp>
install_extension(
File "c:\python\lib\site-packages\jupyterlab\commands.py", line 388, in install_extension
return handler.install_extension(extension, pin=pin)
File "c:\python\lib\site-packages\jupyterlab\commands.py", line 603, in install_extension
info = self._install_extension(extension, tempdir, pin=pin)
File "c:\python\lib\site-packages\jupyterlab\commands.py", line 1499, in _install_extension
info = self._extract_package(extension, tempdir, pin=pin)
File "c:\python\lib\site-packages\jupyterlab\commands.py", line 1575, in _extract_package
ret = self._run([which('npm'), 'pack', source], cwd=tempdir)
File "c:\python\lib\site-packages\jupyterlab\commands.py", line 1751, in _run
proc = ProgressProcess(cmd, **kwargs)
File "c:\python\lib\site-packages\jupyterlab\commands.py", line 83, in __init__
self.proc = self._create_process(
File "c:\python\lib\site-packages\jupyterlab_server\process.py", line 178, in _create_process
proc = subprocess.Popen(cmd, **kwargs)
File "c:\python\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "c:\python\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Exiting application: jupyter
节点v12.18.3
纱线配置加载。
>“C:\Program Files\nodejs\npm.CMD”包C:\Users\nonie
回溯(最近一次呼叫最后一次):
文件“c:\python\lib\site packages\jupyterlab\debuglog.py”,第47行,在调试日志中
产量
文件“c:\python\lib\site packages\jupyterlab\labextensions.py”,第93行,在开始处
ans=self.run_任务()
文件“c:\python\lib\site packages\jupyterlab\labextensions.py”,第138行,在运行任务中
返回任何([
文件“c:\python\lib\site packages\jupyterlab\labextensions.py”,第139行,在
安装扩展插件(
文件“c:\python\lib\site packages\jupyterlab\commands.py”,第388行,在安装扩展名中
返回处理程序。安装扩展插件(扩展插件,pin=pin)
文件“c:\python\lib\site packages\jupyterlab\commands.py”,第603行,在安装扩展名中
info=self.\u安装扩展(扩展,tempdir,pin=pin)
文件“c:\python\lib\site packages\jupyterlab\commands.py”,第1499行,扩展名为
info=self.\u extract\u包(扩展名,tempdir,pin=pin)
文件“c:\python\lib\site packages\jupyterlab\commands.py”,第1575行,在\u extract\u包中
ret=self.\u运行([which('npm'),'pack',source],cwd=tempdir)
文件“c:\python\lib\site packages\jupyterlab\commands.py”,第1751行,正在运行
proc=ProgressProcess(cmd,**kwargs)
文件“c:\python\lib\site packages\jupyterlab\commands.py”,第83行,在uu init中__
self.proc=self.\u创建\u进程(
文件“c:\python\lib\site packages\jupyterlab\u server\process.py”,第178行,在\u create\u进程中
proc=subprocess.Popen(cmd,**kwargs)
文件“c:\python\lib\subprocess.py”,第854行,在_init中__
self.\u execute\u child(参数、可执行文件、预执行文件、关闭文件、,
文件“c:\python\lib\subprocess.py”,第1307行,在执行子进程中
hp、ht、pid、tid=\u winapi.CreateProcess(可执行文件、参数、,
FileNotFoundError:[WinError 2]系统找不到指定的文件
退出应用程序:jupyter
有人能帮忙吗?看起来npm有问题,你能检查一下它是否安装正确并且不是太旧吗?
npm-v