Did you manage to resolve this problem? I installed PyTorch for the first time today through Anaconda (using the command “conda install pytorch torchvision cudatoolkit=10.2 -c pytorch”). I then get the similar error displayed below when I try to run any code where I import ‘torch’.