OS : Ubuntu 22.04.1 6.8.0-60-generic : CUDA 12.2 python=3.8 pytorch==1.13.0 torchvision==0.14.0 pytorch-cuda=11.7 P.S. gcc error --> version mismatch torch import error -> Create a new clean conda environment and reinstall PyTorch.