title: import torch ModuleNotFoundError: No module named 'torch'
body: <p>Help me understand few things, im new with python and all these depended libraries.</p>
  <p>I m trying to run a project which is written in python. Git repository can be found here: <a href="https://github.com/ifzhang/FairMOT" rel="nofollow noreferrer">https://github.com/ifzhang/FairMOT</a></p>
  <p>On anaconda prompt I have been running these commands:</p>
  <pre><code>conda create -n FairMOT
  conda activate FairMOT
  conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch
  cd ${FAIRMOT_ROOT}
  pip install -r requirements.txt 
  </code></pre>
  <p>All being successfully installed</p>
  <p>I have performed all the steps that were listed in the Readme file</p>
  <p>Now there is training step which requires to run shell script.</p>
  <p>Assuming the fact that shell script would not be called on anaconda prompt, I switched to git bash, and I run the script (keeping in mind of path)</p>
  <pre><code> sh experiments/crowdhuman_dla34.sh
  </code></pre>
  <p>it throws error</p>
  <pre><code>Sanam@LAPTOP-NPVR76P7 MINGW64 /f/NTNU/Deep learning/Repositories/FairMOT (master)
  $ sh experiments/crowdhuman_dla34.sh
  Traceback (most recent call last):
  File &quot;train.py&quot;, line 10, in &lt;module&gt;
  import torch
  ModuleNotFoundError: No module named 'torch'
  </code></pre>
  <p>Question is: is there any other console where I need to run this command other than git bash? it would definitely not work on anaconda prompt. what im doing wrong?</p>
  <p>coming back to anaconda prompt, when I test import there, it worked</p>
  <pre><code>  (FairMOT) F:\NTNU\Deep learning\Repositories\FairMOT&gt;python
    Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on 
    win32
    Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
    &gt;&gt;&gt; import torch
    &gt;&gt;&gt;
  </code></pre>
  <p>where &amp; how do I run this command? so that it would work?is running on git bash not good?</p>
  <p>thanks in advance!!</p>
  <p>PS:
  I have already tried reinstalling, activation/ deactivation of environment but it does not work</p>