1. 在vsconde中添加jupyter插件
2.虚拟环境的python版本<3.9
3.确认环境中有ipykernel
没有的话pip install ipykernel
4.确认pyzmq包的版本低于20.0,jupyter-client6.1.12,jupyter-console6.4.0
否则安装
pip uninstall pyzmq
pip install pyzmq==19.0.2
pip uninstall jupyter-client
pip install jupyter-client==6.1.12
pip uninstall jupyter-console
pip install jupyter-console==6.4.0