Solution:
Reduce pytorch version to 1.7.0;
#Uninstall the original torch and torch vision first
pip uninstall torch pip uninstall torchvision
#Install pytorh1.7
pip install torch==1.7.0+cu110 torchvision==0.8.1+cu110 -f https://download.pytorch.org/whl/torch_stable.html
Recompile.
Similar Posts:
- [Solved] PIP Install torch1.7 Error: ERROR: torch has an invalid wheel, .dist-info directory not found
- Pytorch Install Error: OSError: [WinError 126] Could not Find the Module, Error loading “xx\lib\site-packages\torch\lib\asmjit.dl
- [Solved] pytorchImportError: numpy.core.multiarray failed to import
- import torchvision Error: UserWarning: Failed to load image Python extension: Could not find module
- [Solved] GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation
- Mmdetection Install Error: nms is not compiled with GPU support
- PyTorch UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` inst
- Examples of torch.NN.Functional.Relu() and torch.NN.Relu()
- PytorchStreamReader failed reading zip archive: failed finding central directory
- [Solved] Centos6: Python 2.6 upgrade to 3.7, error handling [no module named ‘_ctypes’]