不更新库的问题
python在jupyter里数据展示非常直观,都很喜欢用jupyter来调试,
但是 今天发现
库更新需要jupyter重启
不然 库不回更新,会反复报同样的错误!
用jupyter调用库自己些的库,报错
更改更改库,更新库后,仍然报错。
后来才发现 已调用的库,如果更新了 jupyter需要重启。
新环境安装
pip install jupyter
pip uninstall pyzmq
pip install pyzmq==19.0.2
pip install jupyter-client==6.1.12
pip install jupyter-console==6.4.0
查看jupter 支持环境:
jupyter kernelspec list
进入显示地址
cd ~/.local/share/jupyter/kernels/python3
sudo vim kernel.json
argv添加虚拟环境地址 ,如下
参考:vscode中配置jupyter(彻底解决Failed to start the Kernel问题)_vscode配置jupyter-CSDN博客