jupyter

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


I recently upgraded jupyter, but now I get

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

when I run for instance jupyter-notebook or jupyter notebook

and pip install --upgrade pyzmq did not solve the issue

any idea?

Thanks

ps: I am on Mac OS 10.15.5 , with 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

Solution

  • I had the same issue and below fixed my problem:

    pip uninstall pyzmq
    pip install pyzmq