Old cuda driver with Pytorch 1.5

a_d: <p>Hello all,<br>
I updated my version to 1.5 and keep getting the following error -</p>
<pre><code class="lang-auto">AssertionError: 
The NVIDIA driver on your system is too old (found version 10010).
Please update your GPU driver by downloading and installing a new
version from the URL: http://www.nvidia.com/Download/index.aspx
Alternatively, go to: https://pytorch.org to install
a PyTorch version that has been compiled with your version
of the CUDA driver.
</code></pre>
<p>Here’s a snapshot of my nvidia-smi<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/9/6/960e10a6ef0086ff5cccbc62e2b27674db9feb1d.png" data-download-href="https://discuss.pytorch.org/uploads/default/960e10a6ef0086ff5cccbc62e2b27674db9feb1d" title="smi"><img src="https://discuss.pytorch.org/uploads/default/original/3X/9/6/960e10a6ef0086ff5cccbc62e2b27674db9feb1d.png" alt="smi" data-base62-sha1="lprKNq4rqZvv2J0QIDEWLSo61Z3" width="690" height="268" data-dominant-color="303436"><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">smi</span><span class="informations">708×276 26.4 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>
<p>Could someone please guide me what to do<br>
Thanks in Advance</p>

ptrblck: <p>Could you post the output of <code>nvcc --version</code>?<br>
Also, how did you install PyTorch? Could you please post the used command?</p>

a_d: <p>Thanks for replying <a class="mention" href="/u/ptrblck">@ptrblck</a></p>
<p>nvcc --version output</p>
<pre><code class="lang-auto">nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:17_PST_2019
Cuda compilation tools, release 10.1, V10.1.105

</code></pre>
<p>torch was installed with -  pip install torch in a virtualenv</p>

ptrblck: <p>Thanks for the information!<br>
I assume you’ve used:</p>
<pre><code class="lang-auto">pip install torch==1.5.0+cu101 torchvision==0.6.0+cu101 -f https://download.pytorch.org/whl/torch_stable.html
</code></pre>
<p>If that’s not the command you’ve used to install PyTorch, could you please post the one you’ve used?</p>

a_d: <p>I just ran</p>
<pre><code class="lang-auto">pip install torch
</code></pre>
<p>EDIT -<br>
The problem got fixed when I switched drivers from proprietary 435 to 440 open source ones</p>

rui_zhang_331: <p>Hi , I have same issue here</p>
<p>Here is my NVCC version</p>
<pre><code class="lang-auto">nvcc: NVIDIA (R) Cuda compiler driver

Copyright (c) 2005-2018 NVIDIA Corporation

Built on Sat_Aug_25_21:08:01_CDT_2018

Cuda compilation tools, release 10.0, V10.0.130
</code></pre>
<p>I am installing pytorch 1.2.0 as</p>
<p><code> conda install pytorch==1.2.0 torchvision==0.4.0 cudatoolkit=10.0 -c pytorch</code></p>
<p>am I using correct way?</p>

ptrblck: <p>Do you need this old PyTorch version or could you install the latest stable release (<code>1.5.1</code>)?<br>
Which driver and GPU are you using?</p>

rui_zhang_331: <p>OK, Thanks, I think I can try 1.5.1 version</p>

Julien_Despois: <p>I have the same issue. Here are the versions I have:</p>
<pre><code class="lang-auto">pytorch       1.6.0        py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
cudatoolkit   10.1.243     h6bb024c_0
</code></pre>
<p><strong>NVCC:</strong><br>
<code>Cuda compilation tools, release 10.1, V10.1.243</code></p>
<p><strong>NVIDIA-SMI</strong>:<br>
<code>| NVIDIA-SMI 418.126.02   Driver Version: 418.126.02   CUDA Version: 10.1|</code></p>

a_d: <p>Update your driver to  the 440 version it should work fine then…</p>

Julien_Despois: <p>Note: I created a new environment from scratch (with python 3.8 if it matters) and now it works.</p>