jupyter cannot import secure_write/ jupyter notebook 闪退

今天给jupyter安装了主题后,发现无法启动jupyter。点开快捷方式会闪一下,然后退出。

贴一下自己的解决方法。首先打开Python的命令行,比如我用到时anaconda。输入jupyter notebook。
jupyter cannot import secure_write/ jupyter notebook 闪退
查看错误信息,比如我的错误信息是cannot import secure_write.也就是说无法导入某些东西。一般这时候不需要找文件,这样太麻烦,直接重装就行了。
jupyter cannot import secure_write/ jupyter notebook 闪退
pip install --upgrade jupyter_client 如果太慢可以使用国内源,在后面加上-i https://pypi.doubanio.com/simple/ jupyterthemes即可。
jupyter cannot import secure_write/ jupyter notebook 闪退
问题解决(✪ω✪)