搜了网上各种各样的方法,包括jupyter lab 官方文档中说到需要安装node,这个方法对我不管用,因为当你用brew install node时,又会踩到版本问题的坑,直到我用蹩脚的英文google之后,在stack overflow找到一个在2021.05.12号的回答,这个刚好是在我踩坑的同一天。
原因是:This is because of changes introduced in jupyter-server release two days ago (2021-05-10), see the discussion in JupyterLab GitHub repo.
是不是很巧,解决方法是:
pip install nbclassic==0.2.8
如果你也有类似问题,也试试吧。附上原文:
https://stackoverflow.com/questions/67497931/q-cant-start-up-jupyter-lab-on-macos
附上自己的jpuyter版本: