终端执行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
相关产品推荐
相关产品推荐

