简体   繁体   English

Jupyter Notebook 未启动(Anaconda)

[英]Jupyter Notebook not launching (Anaconda)

When I try to launch Jupyter notebook through Anaconda, I get the following error message:当我尝试通过 Anaconda 启动 Jupyter 笔记本时,我收到以下错误消息:

Traceback (most recent call last):
File "C:\Users\Michael\anaconda3\Scripts\jupyter-notebook-script.py", line 6, in 
from notebook.notebookapp import main
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\notebook\notebookapp.py", line 49, in 
from zmq.eventloop import ioloop
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\__init__.py", line 47, in 
from zmq import backend
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 40, in 
reraise(*exc_info)
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py", line 34, in reraise
raise value
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py", line 27, in 
_ns = select_backend(first)
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\backend\select.py", line 28, in select_backend
mod = __import__(name, fromlist=public_api)
File "C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py", line 6, in 
from . import (constants, error, message, context,
ImportError: cannot import name 'constants' from 'zmq.backend.cython' (C:\Users\Michael\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py)

How do I go about fixing this?我该如何解决这个问题? I already tried reinstalling Python and Jupyter (for what it's worth).我已经尝试重新安装 Python 和 Jupyter(物有所值)。

Try:尝试:

conda uninstall pyzmq
conda install pyzmq

or或者

pip uninstall pyzmq
pip install pyzmq

source: https://github.com/jupyter/notebook/issues/3435来源: https://github.com/jupyter/notebook/issues/3435

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM