Looking for the troubleshooting docs

I’m having trouble to install pytorch. I only have a couple of hours on some nights of the week and I have an error that I think is related to to setup. But I am not finding help docs.

When I run import torch so I can check if the install worked I get the following error:

ImportError Traceback (most recent call last)

1 from future import print_function
----> 2 import torch
3 x = torch.rand(5, 3)
4 print(x)

c:\users\mrhob.virtualenvs\torchy-fl7c4wvq\lib\site-packages\torch_init_.py in
79 del _dl_flags
—> 81 from torch._C import *
83 all += [name for name in dir(_C)

ImportError: DLL load failed: The specified module could not be found

Any help would be greatly appreciated!

So assuming your install directory c:\users\mrhob.virtualenvs\torchy-fl7c4wvq\lib\site-packages\torch has a _C.*.pyd on Windows (with * something), which is should be loading, I seem to recall that Windows might have a rather opaque and uninformative error message when one of the dependency DLLs cannot be found.

How did you install? Generally the anaconda method seems to be the most reliable and most tested. (Even though I must admit I invariably use pip3 without virtual env.)

Best regards