问题
今天打开jupyter一直显示内核正在启动中…实际上就算等再长时间也打不开
解决办法
首先去看启动的时候会弹出来的cmd运行日志,找到里面显示[ERROR]的部分,发现错误原因是 HTTP 404: Not Found (Kernel does not exist: 47de877d-13f6-431f-8068-a81f8c9ecde9)
从网上搜了各种发现好像是因为prompt-toolkit版本对不上类似原因的,也不太懂,but get到了一些cmd命令好像可以试一下…
- 打开cmd
sudo pip install --upgrade ipykernel
- 之后发现报红,错误为
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. spyder 5.1.5 requires pyqt5<5.13, which is not installed. spyder 5.1.5 requires pyqtwebengine<5.13, which is not installed. conda-repo-cli 1.0.4 requires pathlib, which is not installed..
感觉大概就是有一些东西没有安装,于是挨个把上面显示没有安装的安装一遍 sudo pip install pyqt5
sudo pip install pyqtwebengine
sudo pip install pathlib
- 全部安装成功后重新
sudo pip install --upgrade ipykernel
- 没有再次显示错误
- 斗胆打开jupyter再试一下,然后就一秒钟就内核就绪啦:)