You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
...
The text was updated successfully, but these errors were encountered: