found a solution posted elsewhere.

  
      github.com/pytorch/pytorch
  
  
    



Issue: from torch._C import *  (ImportError: DLL load failed: The specified module could not be found. 208


	
	opened by HarshneetBhatia
	on 2018-01-07
	
	
	closed by ezyang
	on 2018-01-07
	


File "", line 4, in 
import torch
File "C:\Users\hp i3\Anaconda3\lib\site-packages\torch_init_.py", line 76, in 
from torch._C import *
ImportError: DLL load failed: The specified...




  
  
    
    
  
  


@AlbertHuyb You are using pure Python, right? Then you’ll need to install the VC Redist 2017 by yourself. You’ll also need the intel-openmp dlls and Numpy.
Here are the links to them:
VC 2017 - https://aka.ms/vs/15/release/VC_redist.x64.exe 683
Intel openmp - https://anaconda.org/anaconda/intel-openmp/files 688
Download win-64/intel-openmp-2018.0.0-8.tar.bz2 and put the dll files in Library\bin into a dir and append the path of it to the environment variable PATH.
Just unack openmp to some directory, go to control panel - system - advanced - environment variables - select path - new - add a path to the bin folder of openmp
I had to install python 3.5.4 after a reboot, before it finally worked. So I had python 3.5.1, added the above, then rebooted, then upgraded to 3.5.4. This worked on both computers. Watch out for a pending windows update. Your Visual C++ redistribution install will just hang. Arg!