解决AttributeError: module ‘torchvision‘ has no attribute ‘ops‘

淡淡的烟草味﹌ 2022-12-27 04:53 317阅读 0赞

解决AttributeError: module ‘torchvision’ has no attribute ‘ops’

报错信息

  1. AttributeError: module 'torchvision' has no attribute 'ops'
  2. Collecting torchvision==0.3.0
  3. Using cached torchvision-0.3.0-cp36-cp36m-win_amd64.whl (1.3 MB)
  4. Collecting torch>=1.1.0
  5. Using cached torch-1.7.0-cp36-cp36m-win_amd64.whl (184.0 MB)

解决办法

  1. pip install torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html

无需梯子

欢迎大家交流学习,任何问题都可以留言

发表评论

表情:
评论列表 (有 0 条评论,317人围观)

还没有评论,来说两句吧...

相关阅读