UserWarning: Failed to load image Python extension: Could not find module ‘D:\anaconda\envs\PyTorch\

886次阅读
没有评论
UserWarning:

from torchvision import transforms

出现报错

D:anacondaenvsPyTorchlibsite-packagestorchvisionioimage.py:11: UserWarning: Failed to load image Python extension: Could not find module 'D:anacondaenvsPyTorchLibsite-packagestorchvisionimage.pyd' (or one of its dependencies). Try using the full path with constructor syntax. warn(f"Failed to load image Python extension: {e}")

网上查到是版本不对, 直接

pip uninstall torchvision

然后

pip install torchvision

神龙|纯净稳定代理IP免费测试>>>>>>>>天启|企业级代理IP免费测试>>>>>>>>IPIPGO|全球住宅代理IP免费测试
1

相关文章:

版权声明:Python基础教程2022-11-22发表,共计398字。
新手QQ群:570568346,欢迎进群讨论 Python51学习