title: while importing torch- shows - [WinError 126] The specified module could not be found
body: <p>I have tried to install python torch by using</p>
  <pre><code>  !pip install torch 
  </code></pre>
  <p>But I got the error <strong>OSError: [WinError 126] The specified module could not be found</strong></p>
  <p>Then I tried with</p>
  <pre><code>pip install torch -f https://download.pytorch.org/whl/torch_stable.html
  </code></pre>
  <p>The running log is as follows,</p>
  <p><a href="https://i.stack.imgur.com/lhqdx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lhqdx.png" alt="enter image description here" /></a></p>
  <p>Then I have installed the torch by the below command to install the CPU version of the torch.</p>
  <pre><code>pip install torch==1.7.1+cpu torchvision==0.8.2+cpu torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
  </code></pre>
  <p>Then, when I try to test by the command,</p>
  <pre><code>import torch
  print(torch.__version__)
  </code></pre>
  <p>In the Spyder, it still could not recognize,
  <a href="https://i.stack.imgur.com/RdcUb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RdcUb.png" alt="enter image description here" /></a></p>
  <p>However, in python.exe it could recognize and provides the correct output.</p>
  <p><a href="https://i.stack.imgur.com/RG8hY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RG8hY.png" alt="enter image description here" /></a></p>