我安装了 Miniconda 我正在尝试使用 Jupyter Notebook 使用它,但无法这样做。安装 miniconda 后,我在终端上运行 jupyter notebook
命令,但未安装 jupyter。
我继续使用 conda install jupyter
安装它。但是,我再次在终端上运行 jupyter notebook
并收到以下控制台错误:
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'
知道如何解决这个问题吗?
谢谢
最佳答案
这个问题也发生在我身上。我较旧的 anaconda 环境似乎运行良好,但我今天创建的环境似乎有这个确切的问题,它会抛出 AttributeError: type object 'IOLoop' has no attribute 'initialized'
。
这似乎是因为今天或昨天发布的最新版本 tornado==5.0
。我恢复到上一个稳定版本,即 tornado==4.5.3
并且它工作正常。
解决办法
pip uninstall tornado
pip install tornado==4.5.3
关于python - 在 Miniconda 上安装 Jupyter Notebook,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49141525/