IProgress not found. Please update jupyter and ipywidgets.

想测试一下torchvision.datasets下载数据集的功能

import torchvision.datasets as dset


root = r'D:\python\alpha\Datasets'
dset.CIFAR10(root, train=True, transform=None, target_transform=None, download=True)

发现报了这样的错误

IProgress not found. Please update jupyter and ipywidgets.

查到网上的解决方案都是和错误中提示那样,更新jupyter,发现更新之后还是报错。
后来想到报的错既然和jupyter有关,就在Jupyter Notebook里测试了一下,代码成功运行。

你可能感兴趣的:(深度学习BUG集锦,深度学习,bug,pytorch)