在使用 pip install jupyter 的时候 记得关梯子
如果出现 ImportError: cannot import name constants 的错误时 先完全卸载 jupyter
pip uninstall jupyter -y
pip uninstall jupyter_core -y
pip uninstall jupyter-client -y
pip uninstall jupyter-console -y
pip uninstall notebook -y
pip uninstall qtconsole -y
pip uninstall nbconvert -y
pip uninstall nbformat -y
然后 重新
pip install jupyter
然后使用
pip install --force-reinstall --upgrade pyzmq
即可