Error loading 'caffe2_detectron_ops.dll' in windows

Hi, I’m new to PyTorch. I have installed using the command ‘conda install pytorch torchvision torchaudio cudatoolkit=11.0 -c pytorch’ from pytorch.org. I’m using Jupyter IDE.
When I try to import torch, the follwoing error is coming.

“OSError: [WinError 182] Error loading “C:\ProgramData\Anaconda3\lib\site-packages\torch\lib\caffe2_detectron_ops.dll” or one of its dependencies.”

Can somebody help me to resolve this?

Thanks in advance.

1 Like

This answer worked for me.

Just deleting “caffe2_detectron_ops.dll” from the path (“C:\Users\Girish\AppData\Local\Programs\Python\Python38\lib\sitepackages\torch\lib\caffe2_detectron_ops.dll”)

1 Like

Thank you for your suggestion. I also suffer from such a problem and fixed it as you suggested.