簡體   English   中英

我正在嘗試運行 jupyter notebook。 但收到以下錯誤:

[英]I am trying to run jupyter notebook. but getting the following error:

我正在嘗試運行 jupyter notebook。 但收到以下錯誤:

> Traceback (most recent call last):   File
> "c:\users\lenovo\appdata\local\programs\python\python37\lib\runpy.py",
> line 193, in _run_module_as_main
>     "__main__", mod_spec)   File "c:\users\lenovo\appdata\local\programs\python\python37\lib\runpy.py",
> line 85, in _run_code
>     exec(code, run_globals)   File "C:\Users\lenovo\AppData\Local\Programs\Python\Python37\Scripts\jupyter-notebook.EXE\__main__.py",
> line 5, in <module>   File
> "c:\users\lenovo\appdata\local\programs\python\python37\lib\site-packages\notebook\notebookapp.py",
> line 47, in <module>
>     from zmq.eventloop import ioloop   File "C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\__init__.py",
> line 47, in <module>
>     from zmq import backend   File "C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py",
> line 40, in <module>
>     reraise(*exc_info)   File "C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\utils\sixcerpt.py",
> line 34, in reraise
>     raise value   File "C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\backend\__init__.py",
> line 27, in <module>
>     _ns = select_backend(first)   File "C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\backend\select.py",
> line 28, in select_backend
>     mod = __import__(name, fromlist=public_api)   File "C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py",
> line 6, in <module>
>     from . import (constants, error, message, context, ImportError: cannot import name 'constants' from 'zmq.backend.cython'
> (C:\Users\lenovo\AppData\Roaming\Python\Python37\site-packages\zmq\backend\cython\__init__.py)

嘗試:

pip uninstall pyzmq
pip install pyzmq

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM