pytorch运行出错:AttributeError: module ‘torch‘ has no attribute ‘ops‘
pip install torchvision==0.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/

在尝试使用PyTorch时遇到了一个错误:AttributeError,提示'torch'模块没有'ops'属性。解决这个问题的方法是确保安装的torch版本与代码要求兼容。尝试降级torchvision到0.4.1版本,通过命令`pip install torchvision==0.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/`来安装。
pytorch运行出错:AttributeError: module ‘torch‘ has no attribute ‘ops‘
pip install torchvision==0.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple/

8741

被折叠的 条评论
为什么被折叠?