更新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
相关产品推荐
相关产品推荐

