You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

更新nbclassic后无法启动Jupyter notebook,如何解决依赖冲突?

Jupyter Notebook依赖冲突解决办法

你遇到的错误是典型的版本依赖不兼容问题:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behavior is the source of the following dependency conflicts.
notebook 6.5.1 requires nbclassic==0.4.5, but you have nbclassic 0.4.6 which is incompatible.

有两种可行的解决方式,并非必须降级:

  • 降级nbclassic到指定版本:这是最直接快速的方案,执行以下命令即可修复依赖冲突,让Jupyter Notebook正常启动:

    pip install nbclassic==0.4.5
    
  • 升级notebook到兼容版本:如果不想降级nbclassic,可以升级notebook到支持nbclassic 0.4.6的版本。先尝试自动升级:

    pip install --upgrade notebook
    

    若自动升级后仍有问题,可以查询notebook的版本兼容信息,再指定具体兼容版本安装,例如:

    pip install notebook==[对应兼容版本号]
    

内容的提问来源于stack exchange,提问作者user16582030

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 17:50:29