Problem with torchvision 'can not import name' error

Hi,
I am new to pytorch. I am using Windows 10 GPU laptop (with 10.0 Cuda). torchvision is not working in my system. Whenever I run a program, it gives DLL load error or ‘can not import name…’ error. I tried almost every solution found in the interent to solve the problem, but the problem still persists.
I am using python=3.7
pytorch=1.4.0.
Can anybody help me in this regard?

Thanks in advance.

Could you install the latest PyTorch and torchvision releases and check, if you are still facing the same issue?
PyTorch 1.4.0 is quite old by now and I assume you are also using the corresponding torchvision version.

Hi, Yes I used Pytorch 1.12 and corresponding torchvision but the problem still persists.

The latest PyTorch release is 1.8.0 so do you mean 0.12?
If so, I would highly recommend to update to a newer version :wink: