在Miniconda上安装Jupyter Notebook [英] Install Jupyter Notebook on Miniconda
问题描述
我安装了 Miniconda ,并且我正在尝试使用 Jupyter Notebook ,但无法做到这一点.安装miniconda之后,我在终端上运行了jupyter notebook
命令,但未安装jupyter.
I installed Miniconda and I'm trying to use Jupyter Notebook with it but haven't been able to do so. After installing miniconda I ran the jupyter notebook
command on my terminal and jupyter wasn't installed.
我继续安装了conda install jupyter
.但是,我再次在终端上运行jupyter notebook
并收到以下控制台错误:
I went ahead and installed it with the conda install jupyter
. However, I once again ran jupyter notebook
on my terminal and got the following console error:
Emilios-MacBook-Pro:文档emilioramirezeguia $ jupyter笔记本 追溯(最近一次通话): 在第7行的文件"/Users/emilioramirezeguia/miniconda2/bin/jupyter-notebook" 从notebook.notebookapp导入主要 在第45行中输入文件"/Users/emilioramirezeguia/miniconda2/lib/python2.7/site-packages/notebook/notebookapp.py" ioloop.install() 安装中的文件"/Users/emilioramirezeguia/miniconda2/lib/python2.7/site-packages/zmq/eventloop/ioloop.py",第210行 断言(不是ioloop.IOLoop.initialized())或\ AttributeError:类型对象"IOLoop"没有属性已初始化"
Emilios-MacBook-Pro:documents emilioramirezeguia$ jupyter notebook Traceback (most recent call last): File "/Users/emilioramirezeguia/miniconda2/bin/jupyter-notebook", line 7, in from notebook.notebookapp import main File "/Users/emilioramirezeguia/miniconda2/lib/python2.7/site-packages/notebook/notebookapp.py", line 45, in ioloop.install() File "/Users/emilioramirezeguia/miniconda2/lib/python2.7/site-packages/zmq/eventloop/ioloop.py", line 210, in install assert (not ioloop.IOLoop.initialized()) or \ AttributeError: type object 'IOLoop' has no attribute 'initialized'
有什么办法解决这个问题吗?
Any idea how to fix this?
谢谢
推荐答案
这个问题也刚刚发生在我身上.我较旧的anaconda环境似乎运行良好,但是我今天创建的环境似乎遇到了抛出AttributeError: type object 'IOLoop' has no attribute 'initialized'
的确切问题.
This problem has just happened to me as well. My older anaconda environments seem to be working fine but the environments I have created today seem to have this exact issue which throws AttributeError: type object 'IOLoop' has no attribute 'initialized'
.
这似乎是由于今天或昨天发布的最新版本的tornado==5.0
.我恢复到上一个稳定的版本,即tornado==4.5.3
,它可以正常工作.
It seems to be because of the latest release of tornado==5.0
which released either today or yesterday. I reverted back to the last stable version i.e. tornado==4.5.3
and it worked.
这是解决方案
pip uninstall tornado
pip install tornado==4.5.3
这篇关于在Miniconda上安装Jupyter Notebook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!