我安装了 Miniconda 并尝试使用它来运行 Jupyter Notebook,但无法成功。在安装 Miniconda 后,在终端上运行 jupyter notebook
命令却提示未安装 jupyter。
我用 conda install jupyter
命令再次安装了 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'
有什么办法可以解决这个问题吗?
谢谢
~/miniconda2
中,所以你可以删除该目录。您还需要修复您的PATH。在终端中运行echo $PATH
来查看它。然后尝试在~/.bashrc
或~/.bash_profile
中查找并删除Miniconda行。但请查找更详细的说明,以确保您不会错过任何内容。 - daviewales