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

终端执行jupyter lab命令报错,Anaconda Navigator可正常启动求助

解决Jupyter Lab命令行启动报错:Unexpected keyword argument 'registry'

这个错误是因为jupyter_events依赖的jsonschema版本过高导致的——新版jsonschema移除了registry参数,但当前环境里的jupyter_events版本仍在调用这个参数,从而触发报错。而Anaconda Navigator启动时使用的是适配过的环境配置,所以能正常打开Jupyter Lab。

解决步骤:

  • 先查看当前jsonschema版本:
    pip show jsonschema
    
  • 降级jsonschema到兼容版本(推荐3.2.0,该版本保留了registry参数):
    pip install jsonschema==3.2.0
    
  • 重新尝试启动Jupyter Lab:
    jupyter lab
    

如果上述方法无效,可以尝试强制重新安装jupyter_events,确保它和当前环境的依赖适配:

pip install --force-reinstall jupyter_events

如果你使用conda管理环境,也可以用conda命令来统一调整版本:

conda install jsonschema=3.2.0 jupyter_events -y

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.11 20:55:14