我无法导入 torchvision
我安装了torchvision0.12.0,python3.8,我的操作系统是Windows。 我成功导入了 torch,但无法导入 torchvision 并出现此错误。
ImportError
导入 _imaging 时 DLL 加载失败: 文件“C:\Users'MyName'\Documents\GitHub\pytorch-cifar\main.py”,第 8 行,位于 import torchvision
有没有人可以解决这个问题?
I installed torchvision0.12.0, python3.8 and my OS is Windows.
I succeeded in importing torch, but I couldn't import torchvision and getting this error.
ImportError
DLL load failed while importing _imaging:
File "C:\Users'MyName'\Documents\GitHub\pytorch-cifar\main.py", line 8, in
import torchvision
Is there someone who can solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是由于torch和torchvision版本不兼容造成的。您可以通过以下链接获取您想要的信息:
对应的torchvision版本和支持的Python版本
This may be due to incompatible versions of torch and torchvision.You can get the information you want through the following link:
the corresponding torchvision versions and supported Python versions