Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError:d2lzh_pytorch中from IPython.display import set出错。 #105

Open
Raisin975 opened this issue Mar 8, 2020 · 0 comments
Open

Comments

@Raisin975
Copy link

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
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant