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下载以免报错

相关推荐
zhensherlock36 分钟前
Protocol Launcher 系列:App Store 精准引流与应用推广
javascript·macos·ios·typescript·iphone·mac·ipad
椰猫子1 小时前
JDK概述、Maven概述、IDEA概述、常见注解、 Spring Boot + SSM概述、RESTFul编程风格概述
java·ide·intellij-idea
Java基基1 小时前
Idea 插件推荐可直接修改jar包内文件的IDEA插件,无需解压
java·ide·intellij-idea
圣殿骑士-Khtangc2 小时前
Trae IDE AI 编程超全使用教程|从入门到精通,解锁 AI 开发新效率
ide·人工智能·ai编程·编程助手·trae
新缸中之脑2 小时前
mflux:Mac本地生图AI工具
人工智能·macos
小马过河R3 小时前
小白沉浸式本地Mac小龙虾OpenClaw部署安装教程
人工智能·macos·大模型·nlp·agent·openclaw·龙虾
承渊政道3 小时前
ToClaw是什么?一句话:装在云端的OpenClaw
windows·科技·学习·其他·macos·claw
不解不惑4 小时前
MacOS系统ssh和ftp,使用vscode实现
vscode·macos·ssh
空空潍4 小时前
2026年IDEA、PyCharm等专业版学生免费申请教育许可证
java·ide·intellij-idea
承渊政道4 小时前
C++学习之旅【IO库相关内容介绍】
c语言·开发语言·c++·学习·macos·visual studio