title: How do I install Pytorch 1.3.1 with CUDA enabled
body: <p>I have a conda environment on my Ubuntu 16.04 system.</p>
  
  <p>When I install Pytorch using:</p>
  
  <pre><code>conda install pytorch
  </code></pre>
  
  <p>and I try and run the script I need, I get the error message:</p>
  
  <pre><code>raise AssertionError("Torch not compiled with CUDA enabled")
  </code></pre>
  
  <p>From looking at forums, I see that this is because I have installed Pytorch without CUDA support.</p>
  
  <p>I then tried:</p>
  
  <pre><code>conda install -c pytorch torchvision cudatoolkit=10.1 pytorch
  </code></pre>
  
  <p>but now I get the error:</p>
  
  <pre><code>    from torch.utils.cpp_extension import BuildExtension, CUDAExtension
    File "/home/username/miniconda3/envs/super_resolution/lib/python3.6/site-packages/torch/__init__.py", line 81, in &lt;module&gt;
      from torch._C import *
  ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found
  </code></pre>
  
  <p>So it seems that these two installs are installing different versions of Pytorch(?). The first one that seemed to work was Pytorch 1.3.1.</p>
  
  <p>My question: How do I install Pytorch with CUDA enabled, but ensure it is version <code>1.3.1</code> so that it works with my system?</p>