PyTorch and torchvision versions are incompatible报错:Error: Couldn‘t load custom C++ ops.

"Couldn’t load custom C++ ops. This can happen if your PyTorch and "
RuntimeError: Couldn’t load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.
PyTorch and torchvision versions are incompatible报错:Error: Couldn‘t load custom C++ ops._第1张图片
torch版本1.6.0
源码编译的torchvision版本0.7.0
这里确定版本没有问题,重装过多遍还是出现错误(未卸载原版本,直接覆盖安装)
但是好像系统中有两个torchvision版本并存,卸载了高版本的之后就恢复正常了

pip uninstall torchvision

PyTorch and torchvision versions are incompatible报错:Error: Couldn‘t load custom C++ ops._第2张图片

你可能感兴趣的:(TX2,ubuntu)