@martin225 sorry for your troubles, the easier way is to just use l4t-pytorch container which already includes PyTorch, torchvision, torchaudio, ect already compiled/installed with CUDA support:
The 2nd easier way is to build torchvision from source, from the Installation section of this thread: