一、问题
可能是因为之前改过python
版本,今天打开jupyter notebook
的时候闪退了。
打开cmd
,输入jupyter notebook
时,报了如下的错误:
AttributeError: type object 'IOLoop' has no attribute 'initialized'
查过之后发现是因为:jupyter notebook
和tornado
版本不对应
二、解决
在cmd
中输入pip install tornado==4.5.1
(这个版本是可以打开的jupyter notebook
的)。如果出现什么HTTP...Read time out
报错(报错界面关了,只能这样描述一下了。。。),可以利用清华镜像下载。用法如下:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple <包名>