在 Miniconda 上安装 Jupyter Notebook [英] Install Jupyter Notebook on Miniconda

查看:111
本文介绍了在 Miniconda 上安装 Jupyter Notebook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 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:documents emilioramirezeguia$ jupyter notebook回溯(最近一次调用最后一次):文件/Users/emilioramirezeguia/miniconda2/bin/jupyter-notebook",第 7 行,在从 notebook.notebookapp 导入主文件/Users/emilioramirezeguia/miniconda2/lib/python2.7/site-packages/notebook/notebookapp.py",第 45 行,在ioloop.install()安装文件/Users/emilioramirezeguia/miniconda2/lib/python2.7/site-packages/zmq/eventloop/ioloop.py",第210行断言(不是 ioloop.IOLoop.initialized())或 属性错误:类型对象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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆