我想运行 jupyter notebook,但我使用的 Mac 的 Anaconda 环境一团糟。旧所有者卸载了一些我想使用的包——jupyter notebook、pyzmq 等。我想使用 jupyter notebook,但在我尝试使用以下方法手动重新安装这些包之后:
pip install jupyter
pip install pyzmq
运行时出现错误:jupyter notebook
:
Traceback (most recent call last):
File "//anaconda/bin/jupyter-notebook", line 4, in <module> import notebook.notebookapp
File "//anaconda/lib/python2.7/site-packages/notebook/notebookapp.py", line 40, in <module> ioloop.install()
File "//anaconda/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(或者我是否必须以某种方式卸载 anaconda 并在干净的系统上安装)?
最佳答案
This answers in this post will address your issue
但是,如果你想重新开始,我建议 removing anaconda completely然后安装 miniconda。
安装好miniconda后,你可以使用:
conda 安装 jupyter
conda 安装 pyzmq
conda 安装 WHATEVER_PACKAGE
关于python - 我可以在 MacOS 上安装 Anaconda 来覆盖损坏的 Anaconda 安装吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50111663/