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

相关推荐
好奇龙猫3 天前
[大学院-python-base gammer learning(1): setting conda + Jupyter ]
python·jupyter·conda
青苔猿猿7 天前
【1】JupyterLab安装
python·jupyter
星马梦缘8 天前
强化学习实战-2——Keras-DoubleDQN解决Predator【图像输入】
人工智能·python·jupyter·cnn·keras·强化学习·dqn
青苔猿猿8 天前
【3】jupyter单元格Cell操作
python·jupyter·单元格
星马梦缘8 天前
强化学习实战8.1——用PPO打赢星际争霸【环境配置与下位机代码】
人工智能·python·jupyter·强化学习·星际争霸·stablebaseline3·starcraft2
青苔猿猿8 天前
【2】jupyter lab切换anaconda虚拟环境配置说明
jupyter·anaconda·ipython·ipykernel
星星也在雾里9 天前
Anaconda命令行配置Jupyter Notebook虚拟环境
python·jupyter
醉挽清风78310 天前
服务器安装neo4j和jupyter
服务器·jupyter·neo4j
xiaotao13111 天前
阶段零:IDE选择 与 Jupyter Notebook / Lab 使用
ide·人工智能·python·jupyter
Thomas214311 天前
skill分享 iterm2 jupyter jumpserver
ide·python·jupyter