title: Import "torch" could not be resolved, torch=1.10.2 installed
body: <p>I am trying to run the <code>detect.py</code> file from <a href="https://github.com/ultralytics/yolov5#tutorials" rel="nofollow noreferrer">https://github.com/ultralytics/yolov5#tutorials</a>, but vscode says <code>Import &quot;torch&quot; could not be resolved</code>. I checked with <code>pip list</code> and it says</p>
  <pre><code>torch                   1.10.2
  torchvision             0.11.3
  </code></pre>
  <p>I have also installed CUDA v11.6 and added it to environment variables. What is my issue here?</p>
  <p>This is my first post so let me know if there is any additional information needed and I will be happy to provide it.</p>
  <p><strong>EDIT:</strong> I resolved this issue through going outside of my virtual environment and using <code>pip install torch</code> and <code>pip install torchvision</code> in my C:\Users\username directory. I noticed that OpenCV needs the same thing. I guess any package that directly interfaces with your computer's components needs to be installed outside of the virtual environment.</p>