Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

python - Install Jupyter Notebook on Miniconda

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.

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 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

Any idea how to fix this?

Thank you

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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'.

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.

Here's the solution

pip uninstall tornado
pip install tornado==4.5.3

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...