docker中配置交互式的JupyterLab环境的问题

【报错1】 Could not determine jupyter lab build status without nodejs

【解决措施】安装nodejs(利用conda进行安装/从官网下载进行安装)

1、conda安装

conda install -c anaconda nodejs

安装后出现其他报错:Please install nodejs 5+ and npm before continuing installation. nodejs may be installed using conda or directly from the nodejs website.

解决措施:【安装的nodejs的版本太低,安装指定高版本,无法安装可参考2】:

2、从官网下载安装

下载地址:https://nodejs.org/en/download/prebuilt-binaries

版本选择:v20.12.0 (LTS) version of Node. js for Linux running x64

安装方式(解压后直接创建下载路径内node软连接即可):

ln -s /usr/local/node/bin/node /usr/local/bin/node

ln -s /usr/local/node/bin/npm /usr/local/bin/npm

安装后查看nodejs版本(node-v)出现报错:

【node: /1ib/x86_64-linux-gnu/libc. so.6: version `GLIBC_2.28' not found (requied... )】

解决思路:【下载编译 https://mirror.bjtu.edu.cn/gnu/libc/glibc-2.28.tar.xz

遇到报错:【critical programs are missing or too old: gawk bison】

参考多篇文献解决方法仍make instalI失败,换个思路来避开这个问题:

【安装低版本nodejs:v15.14.0 version of Node. js for Linux running x64即可解决】

查看nodejs版本可成功显示!

【报错2】 Failed validating schema (@jupyterlab/apputils-extension:package):'^0.6.2' is not valid under any of the given schemas

【解决措施】主要是由于扩展包缺失

查询安装的扩展

jupyter labextension list

命令行安装对应的扩展

jupyter labextension install @jupyterlab/git

jupyter labextension install @jupyterlab/github

jupyter labextension install @jupyterlab/debugger

jupyter labextension install @krassowski/jupyterlab-lsp

jupyter labextension install @lckr/jupyterlab_variableinspector

参见 https://www.cnblogs.com/banshaohuan/p/13652143.html

安装nbextensions插件:

pip install jupyter_nbextensions_configurator jupyter_contrib_nbextensions

相关推荐
troy1282 天前
Python 基础语法(九):Django/Flask/FastAPI 三大 Web 框架详细对比解析
python·jupyter·django·flask·github·fastapi
kyrie_sakura5 天前
python学习笔记15 -- Anaconda,Jupyter,numpy
python·学习·jupyter·numpy
一木 之林5 天前
Miniconda 安装与 Jupyter 使用入门
ide·python·jupyter
lbb 小魔仙7 天前
Jupyter Notebook / Lab 深度配置指南:插件 + 内核 + 远程访问 + 容器化部署
ide·python·jupyter
典典分享指南8 天前
DeepSeek Harness 开源贡献手记:从 Issue 到 Merge 的完整旅程
jupyter·github·vim·idea·visual studio
深兰科技11 天前
深兰科技亮相2026全球独角兽大会,获评“2026环卫机器人品类领袖企业”
人工智能·科技·jupyter·vim·腾讯会议·深兰科技·全球独角兽大会
小毛驴85012 天前
Jupyter Notebook 安装步骤
ide·python·jupyter
开开心心就好12 天前
免费桌签打印工具,支持批量导入名字
前端·javascript·人工智能·docker·jupyter·智能手机·语音识别
开开心心就好13 天前
免费刷题软件推荐,支持导入题库自动判题
网络·网络协议·tcp/ip·jupyter·智能手机·电脑·idea
开开心心_Every15 天前
实现鼠标键盘动作录制与重复播放的工具
微信·jupyter·pycharm·pdf·计算机外设·word·excel