issues
search
ShusenTang
/
Dive-into-DL-PyTorch
本项目将《动手学深度学习》(Dive into Deep Learning)原书中的MXNet实现改为PyTorch实现。
http://tangshusen.me/Dive-into-DL-PyTorch
Apache License 2.0
18.17k
stars
5.38k
forks
source link
ImportError:d2lzh_pytorch中from IPython.display import set出错。
#105
Open
Raisin975
opened
4 years ago
Raisin975
commented
4 years ago
bug描述
报错信息:
ImportError Traceback (most recent call last)
in
() 1 sys.path.append('/content/gdrive/My Drive/Colab Notebooks/') ----> 2 import d2lzh_pytorch as d2l 1 frames /content/gdrive/My Drive/Colab Notebooks/d2lzh_pytorch/__init__.py in
() ----> 1 from .utils import * 2 /content/gdrive/My Drive/Colab Notebooks/d2lzh_pytorch/utils.py in
() 11 from PIL import Image 12 from collections import namedtuple ---> 13 from IPython.display import set 14 from IPython import display 15 from matplotlib import pyplot as plt ImportError: cannot import name 'set' --------------------------------------------------------------------------- 在`IPython.display`中没有`set`函数。 删掉d2lzh_pytorch中的`from IPython.display import set`即可。 **版本信息** pytorch:1.4.0 torchvision:0.3.1 torchtext:0.3.1 IPython:5.5.0 ...
bug描述 报错信息:
ImportError Traceback (most recent call last)