我试图在我的Python代码中使用tqdm_hotebook,但我遇到了这个错误
import tqdm
for i in tqdm.tqdm_notebook(range(2, int(total_number)//20):i
错误:
IntProgress not found. Please update jupyter and ipywidgets.
ImportError: IntProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
我使用的是Python 3.7.1和tqdm版本(4.28.1(
这对我有效。
conda install -c conda-forge ipywidgets
jupyter nbextension enable --py widgetsnbextension
之后重新启动jupyter笔记本电脑工作。
解决方案最初来自这里。
对于那些不使用conda:的人
pip3 install ipywidgets --user
这对我来说很好:
conda install ipywidgets==7.4.2
啊,我的坏!只需要安装软件包jupyter和ipywidgets!