解决 IProgress not found. Please update jupyter and ipywidgets. 问题
一、报错:IProgress not found. Please update jupyter and ipywidgets.
报错内容如下:
ImportError:IProgress not found. Please update jupyter and ipywidgets.
错误分析:根据报错内容提示,然后查看官方文档(https://ipywidgets.readthedocs.io/en/stable/user_install.html)发现,报错是因为jupyter和运行代码的kernel不是一个环境。
二、解决方法
根据官方文档,要解决此问题,需要安装widgetsnbextension和ipywidgets。
首先,在base环境下安装widgetsnbextension:
conda activate base
conda install -c conda-forge widgetsnbextension
然后,在运行 jupyter 文件的那个环境下安装ipywidgets:
conda activate n
conda install -c conda-forge ipywidgets
详情可查阅官方文档。
安装完成之后,重新启动 jupyter 文件,运行之后不再报错!
参考资料
1.https://blog.youkuaiyun.com/z124665532/article/details/121268416
2.https://ipywidgets.readthedocs.io/en/stable/user_install.html