title: Cannot import Pytorch [WinError 126] The specified module could not be found
body: <p>I'm trying to do a basic install and import of Pytorch/Torchvision on Windows 10. I installed a Anaconda and created a new virtual environment named photo. I opened Anaconda prompt, activated the environment, and I ran:</p>
  
  <pre><code>(photo) C:\Users\&lt;user&gt;\anaconda3\envs&gt;conda install pytorch torchvision cudatoolkit=10.2 -c pytorch**
  </code></pre>
  
  <p>This installed pytorch successfully. Running <strong>conda list</strong> I see: </p>
  
  <pre><code>  pytorch            pytorch/win-64::pytorch-1.5.0-py3.7_cuda102_cudnn7_0
  
    torchvision        pytorch/win-64::torchvision-0.6.0-py37_cu102
  </code></pre>
  
  <p>Then I open a python command prompt while in the virtual environment, and type:</p>
  
  <p><code>import torch</code></p>
  
  <p>The following error is printed:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):
      File "", line 1, in 
      File "C:\Users\njord\anaconda3\envs\photo\lib\site-packages\torch__init__.py", line 81, in 
        ctypes.CDLL(dll)
      File "C:\Users\njord\anaconda3\envs\photo\lib\ctypes__init__.py", line 364, in <strong>init</strong>
        self._handle = _dlopen(self._name, mode)
    OSError: [WinError 126] The specified module could not be found</p>
  </blockquote>
  
  <p>I have uninstalled/reinstalled python and anaconda but still run into the same issue. Advice appreciated.</p>