Mac安装Jupyter和nbextensions报错问题

Mac安装Jupyter NoteBook和nbextensions报错问题

原始:我的电脑是Mac M2芯片(ARM架构),会导致很多与很多版本的插件不兼容问题。

在下载Jupyter Notebook和nbextensions时出现了相互不兼容的问题:

如果使用Notebook7.x.x版本则执行启动命令jupyter notebook会报错无法打开

如果启动Notebook6.x.x(6.4.12版本)会出现nbextensions找不到的情况

反复尝试了解到更适合5和7版本的notebook,于是我选择了notebook5.7.0和nbextensions0.5.1版本

安装步骤

1.卸载当前版本的 notebook 和 nbextensions

powershell 复制代码
pip uninstall notebook
pip uninstall jupyter_contrib_nbextensions

2.安装兼容版本的 notebook 和 nbextensions

安装 notebook 5.7.x 和 jupyter_contrib_nbextensions 0.5.x:

powershell 复制代码
pip install notebook==5.7.0
pip install jupyter_contrib_nbextensions==0.5.1

3.安装 nbextensions 的依赖项

powershell 复制代码
pip install jupyter_nbextensions_configurator

4.安装并启用 nbextensions

powershell 复制代码
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user

5.此时检查notebook和nbextensions的版本

powershell 复制代码
pip show notebook
pip show jupyter_contrib_nbextensions

6.如果报错是jupyter-nbextensions-configurator版本不一致产生的,可改为兼容版本

powershell 复制代码
pip install jupyter-nbextensions-configurator==0.4.1

5.启动 Jupyter Notebook

完成安装后,使用以下命令启动 Jupyter Notebook

powershell 复制代码
jupyter notebook

备注:尽量使用sudo下载以免报错

相关推荐
I烟雨云渊T9 小时前
iOS 数据持久化
macos·ios·cocoa
lincats12 小时前
一步一步学习使用FireMonkey动画(6) 用实例理解动画的运行状态
ide·delphi·livebindings·delphi 12.3·firemonkey
@Demi18 小时前
vsCode或Cursor 使用remote-ssh插件链接远程终端
服务器·ide·vscode·ssh
lincats18 小时前
一步一步学习使用FireMonkey动画(5) 动画图解11种动画插值类型
ide·移动开发·delphi 12.3·firedac·firemonkey
王伯爵19 小时前
Visual Studio Code (VS Code) 工作区配置文件的作用
ide·vscode·状态模式
南风里1 天前
Android Studio下载gradle文件很慢的捷径之路
android·ide·android studio
后天han1 天前
vscode中launch.json中定义的编译文件名于生成的不一致修改
ide·vscode·编辑器
lincats1 天前
一步一步学习使用FireMonkey动画(3) 使用Delphi的基本动画组件类
ide·delphi·delphi 12.3·firemonkey
在嵌入式里摸爬滚打2 天前
VScode远程连接Ubuntu报错问题分析
ide·vscode·编辑器
超级小忍2 天前
从零开始:JDK 在 Windows、macOS 和 Linux 上的下载、安装与环境变量配置
java·windows·macos