jupyter ImportError:无法从部分初始化的模块“zmq.backend.cython”导入名称“常量”

jjr*_*jrr 6 jupyter

我最近升级了jupyter,但现在我得到了

ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython'
Run Code Online (Sandbox Code Playgroud)

例如,当我跑步jupyter-notebookjupyter notebook

pip install --upgrade pyzmq没有解决问题

任何想法?

谢谢

ps:我使用的是 Mac OS 10.15.5 ,其中jupyter --v

jupyter core     : 4.6.3
jupyter-notebook : 6.0.3
qtconsole        : 4.5.5
ipython          : 8.0.0.dev
ipykernel        : not installed
jupyter client   : not installed
jupyter lab      : 1.2.3
nbconvert        : 5.6.1
ipywidgets       : not installed
nbformat         : 5.0.4
traitlets        : 4.3.3
Run Code Online (Sandbox Code Playgroud)

Ali*_*eri 6

我遇到了同样的问题,下面解决了我的问题:

pip uninstall pyzmq
pip install pyzmq
Run Code Online (Sandbox Code Playgroud)