title: Want to know how packages are managed in Conda Package Manager
body: <p>I am new to Data Sciences. Online resources suggest that most data scientists use conda + pip to manage their packages and dependencies, so I also did the same. Let me take a simple example where I just have a single virtual environment named virtualEnv. So essentially conda has 2 environments now :</p>
  <ul>
  <li>base</li>
  <li>virtualEnv</li>
  </ul>
  <p>Now let's say that I have installed PyTorch=1.9.0 in my base environment. Now if I switch to virtualEnv and try to install PyTorch=1.9.0 (the same version as that of base) in that environment, then what happens?</p>
  <p>Does conda pickup the PyTorch packages from the base environment or does it install the package from its online repo again.</p>
  <p>Also, I installed PyTorch in base env using this command : provided on <a href="https://pytorch.org/" rel="nofollow noreferrer">PyTorch website</a></p>
  <pre><code> conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch 
  </code></pre>
  <p>So do I install PyTorch in virtualEnv using the same command or just the simple command would work:</p>
  <pre><code>conda install pytorch cudatoolkit torchvision torchaudio 
  </code></pre>
  <p>Basically the -c pytorch is the difference between the two commands.</p>
  <p>I tried to find this on google but couldn't find anything.</p>