title: Can both the GPU and CPU versions of PyTorch be installed in the same Conda environment?
body: <p>The <a href="https://pytorch.org/get-started/locally/" rel="noreferrer">PyTorch installation web page</a> shows how to install the GPU and CPU versions of PyTorch:</p>
  
  <pre><code>conda install pytorch torchvision cudatoolkit=10.1 -c pytorch
  </code></pre>
  
  <p>and</p>
  
  <pre><code>conda install pytorch torchvision cpuonly -c pytorch
  </code></pre>
  
  <p>Can both version be installed in the same <code>Conda</code> environment?</p>
  
  <p>In case you might ask why would this be needed, it's because I would like a single <code>Conda</code> environment which I can use on computers which have a GPU and those which don't.</p>