python - 在 Miniconda 上安装 Jupyter Notebook

标签 python jupyter-notebook jupyter miniconda

我安装了 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'

Console_Error

知道如何解决这个问题吗?

谢谢

最佳答案

这个问题也发生在我身上。我较旧的 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/

相关文章:

python - 将单项列表转换为整数

python - 在 Django 模型中使用 save() 会产生 TypeError

python - 如何对齐networkx中的节点和边

python - IPython 细胞魔法?

ipython - IPython Jupyter:上传文件夹

python - 在 python 中的 pandas 中匹配数据帧之间的行

bash - 如何将命令的输出分配给 Jupyter Notebook 中的变量?

python - 如何使用 Seaborn 条形图绘制月份(按顺序)?

python - 如何在 Ubuntu 15.10 中安装/运行 Jupyter?

python - 如何在 Jupyter 中将图表图像导出为 pdf?