title: Conda - ModuleNotFoundError: No module named 'torch'
body: <p><strong>Steps to reproduce:</strong></p>
  <p>I am using Anaconda on Windows to set up environment for this repo.</p>
  <p><code>conda create --name pytorch-yolo</code></p>
  <p>Then I install all dependencies with <code>conda install --file requirements.txt</code></p>
  <p>Which returns</p>
  <pre><code>PackagesNotFoundError: The following packages are not available from current channels:
  - torch[version='&gt;=1.2']
  </code></pre>
  <p>So I install pytorch with <code>conda install pytorch torchvision cudatoolkit=10.2 -c pytorch</code></p>
  <p>When I am trying to evaluate the model from the following repo: <a href="https://github.com/eriklindernoren/PyTorch-YOLOv3" rel="nofollow noreferrer">https://github.com/eriklindernoren/PyTorch-YOLOv3</a> with <code>python3 test.py --weights_path weights/yolov3.weights</code> inside conda environment, it returns the following error <code>ModuleNotFoundError: No module named 'torch'</code></p>
  <p>If I run a Jupyter lab or notebook, or even go with python inside conda terminal, torch is easily imported.</p>
  <p><strong>What I've already tried:</strong></p>
  <p>Almost everything from this thread: <a href="https://stackoverflow.com/questions/54843067/no-module-named-torch">No module named &quot;Torch&quot;</a></p>
  <p>Specifically, creating a new conda environment with python set to 3.8.2, installing torch to base and then to the environment.</p>
  <p>I'm also using pyenv to set global python to 3.8.2, but that doesn't help at all.</p>
  <p><code>conda list</code> shows I have pytorch installed</p>
  <p>Can't wrap my head around this issue.</p>