conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
The installation can be completed normally, but an error occurred in the import torch vision:
C:\Users\xuyic\anaconda3\envs\pytorch\lib\site-packages\torchvision\io\image.py:11: UserWarning: Failed to load image Python extension: [WinError 126] 找不到指定的模块。 warn(f"Failed to load image Python extension: {e}")
Solution:
1. From cuda10.2 to 11.3
2. Reduce the version of torchvision, such as 1.3.0
Similar Posts:
- [Solved] pytorchImportError: numpy.core.multiarray failed to import
- [Solved] GeForce RTX 3090 with CUDA capability sm_86 is not compatible with the current PyTorch installation
- [Solved] Error caused by correspondence between tensorflow GPU version number and CUDA
- [Solved] torch.cuda.CudaError: CUDA driver version is insufficient for CUDA runtime version (35) [ WARN:0
- [Solved] Exception: Jupyter command `jupyter-notbook` not found.
- [Solved] UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa5 in position 1508: illegal multibyte sequence
- [Solved] Tensorflow:ImportError: DLL load failed: The specified module cannot be found Failed to load the native TensorFlow runtime
- [Solved] DCNv2 Compile Error: error: identifier “THCudaBlas_SgemmBatched” is undefined
- pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it’s not in you…
- How to Solve Anaconda Error (Three Errors to Solve)