Help installing pytorch with cuda on geforce 2070 Super

Hi, I’m trying to use pytorch with cuda. I have 2070 Super. I’ve installed cuda toolkit (v 10.2), and I’ve installed pytorch using pytorch docs:

conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch

But when I try to use cuda I get an error

AssertionError: Torch not compiled with CUDA enabled

What does torch.__version__ show in your interpreter? Have you tried checking that there were no preexisting PyTorch installs on your system?

Here’s the output, and I’ve created new conda environment so there should not be other torch installs.