Unable to install torch with gpu support

username: ultron
cooked: <p>I am trying to setup torch on my local ubuntu 18.04 machine but so far i have been unsuccessful, any help to setup torch would be really really helpful. when i do <code>torch.backends.cudnn.enabled</code> it returns <code>True</code> but when i do <code>torch.backends.cuda.is_built()</code> it returns <code>False</code> and when i do <code>torch.cuda.is_available()</code> it returns  a <code>False</code>. <div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/7/e/7ef25ef677afa2808fc77bc79ed6e51d10c3e06d.png" data-download-href="https://discuss.pytorch.org/uploads/default/7ef25ef677afa2808fc77bc79ed6e51d10c3e06d" title="torch_gpu"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/7/e/7ef25ef677afa2808fc77bc79ed6e51d10c3e06d_2_690x367.png" alt="torch_gpu" data-base62-sha1="i71rc7OIUXU002rCyytgNXo3jZj" width="690" height="367" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/7/e/7ef25ef677afa2808fc77bc79ed6e51d10c3e06d_2_690x367.png, https://discuss.pytorch.org/uploads/default/optimized/3X/7/e/7ef25ef677afa2808fc77bc79ed6e51d10c3e06d_2_1035x550.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/7/e/7ef25ef677afa2808fc77bc79ed6e51d10c3e06d.png 2x" data-dominant-color="161420"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">torch_gpu</span><span class="informations">1351×720 73.8 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div></p>

username: ptrblck
cooked: <p>How did you install PyTorch? Did you build it from source or installed the binaries?<br>
Since the binaries ship with CUDA and cudnn, you would just need to install the NVIDIA driver.<br>
Note that also nightly binaries are built, in case you need the latest version.</p>

username: ultron
cooked: <p>hey, I installed it by doing <code>conda install pytorch torchvision cudatoolkit=10.1 -c pytorch </code></p>

username: ptrblck
cooked: <p>That looks alright.<br>
Could you post the output log of this install command?<br>
Maybe a wrong version was picked. <img src="https://discuss.pytorch.org/images/emoji/apple/confused.png?v=9" title=":confused:" class="emoji" alt=":confused:"></p>

username: ultron
cooked: <p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/2/c/2cc8bfdd09be8c92537643413161df1b83316d70.png" data-download-href="https://discuss.pytorch.org/uploads/default/2cc8bfdd09be8c92537643413161df1b83316d70" title="installation"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2cc8bfdd09be8c92537643413161df1b83316d70_2_690x335.png" alt="installation" data-base62-sha1="6ob6YfxTK3HDEFwl6xId69vznGM" width="690" height="335" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/2/c/2cc8bfdd09be8c92537643413161df1b83316d70_2_690x335.png, https://discuss.pytorch.org/uploads/default/original/3X/2/c/2cc8bfdd09be8c92537643413161df1b83316d70.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/2/c/2cc8bfdd09be8c92537643413161df1b83316d70.png 2x" data-dominant-color="1B1826"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">installation</span><span class="informations">873×425 35.9 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div>  <a class="mention" href="/u/ptrblck">@ptrblck</a></p>

username: ptrblck
cooked: <p>Apparently the cpu version will be installed as shown by the binary name.<br>
Which OS are you using at the moment?</p>

username: ultron
cooked: <p>operating system: ubuntu 18.04.3</p>

username: ptrblck
cooked: <p>Could you try to update <code>conda</code> via:</p>
<pre><code class="lang-auto">conda update conda
</code></pre>
<p>and retry the install command?</p>

username: ultron
cooked: <p><a class="mention" href="/u/ptrblck">@ptrblck</a> no changes, it still installs the cpu version.</p>

username: ultron
cooked: <p><a class="mention" href="/u/ptrblck">@ptrblck</a> so conda did not work, but I installed it via pip and that works.  thanks.</p>