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

时间:2020-06-17 15:19:17

标签: jupyter

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

ImportError: cannot import name 'constants' from partially initialized module 'zmq.backend.cython'

当我运行实例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

1 个答案:

答案 0 :(得分:0)

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

pip uninstall pyzmq
pip install pyzmq