For Previous Version: Conda installs CPU Version only

ChrisBear: <p>Hello,<br>
I am trying to install PyTorch for CUDA 10.2 (or 11.0). However. The latest PyTorch supporting one of my CUDA Versions is PyTorch 1.12.1.<br>
Installing this via Conda with</p>
<pre><code class="lang-auto">conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
</code></pre>
<p>installs the following packages</p>
<pre><code class="lang-auto">  cudatoolkit        pkgs/main/win-64::cudatoolkit-10.2.89-h74a9793_1 None
  ...
  pytorch            pytorch/win-64::pytorch-1.12.1-py3.7_cpu_0 None
  pytorch-mutex      pytorch/noarch::pytorch-mutex-1.0-cpu None
  ...
  torchaudio         pytorch/win-64::torchaudio-0.12.1-py37_cpu None
  torchvision        pytorch/win-64::torchvision-0.13.1-py37_cpu None
</code></pre>
<p>These seem to be all CPU Versions and later I get the error messages that my version of torch isn’t compiled with CUDA. I know about this post <a href="https://discuss.pytorch.org/t/installing-pytorch-with-conda-installs-cpu-only-version/72214" class="inline-onebox">Installing Pytorch with Conda installs CPU only version</a> so I tried these steps and I even tried to install pytorch with a completly new Conda environment. However I always get the same problem.</p>
<p>Do you have any suggestion on how I can install PyTorch for my CUDA Versions? Or do I need to compile it by myself?</p>
<p>Kind Regards<br>
Christian</p>

ChrisBear: <p>Actually. I got this now.<br>
The information on the <a href="https://pytorch.org/get-started/previous-versions/" class="inline-onebox" rel="noopener nofollow ugc">Previous PyTorch Versions | PyTorch</a> seems to be wrong.<br>
The newest PyTorch version supporting my CUDA Versions is: 1.10.1.<br>
I got this idea from browsing <a href="https://download.pytorch.org/whl/torch/" rel="noopener nofollow ugc">https://download.pytorch.org/whl/torch/</a><br>
There I realised that there are no CUDA 10.2 Versions for PyTorch 1.12.1.</p>
<p>Installing PyTorch 1.10.1 seems to work fine for me</p>

ptrblck: <aside class="quote no-group" data-username="ChrisBear" data-post="2" data-topic="173226">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/letter_avatar_proxy/v4/letter/c/71c47a/48.png" class="avatar"> ChrisBear:</div>
<blockquote>
<p>There I realised that there are no CUDA 10.2 Versions for PyTorch 1.12.1.</p>
</blockquote>
</aside>
<p>That’s not the case, as the PyTorch <code>1.12.1</code> pip wheels with CUDA 10.2 can be downloaded via your posted link here:</p>
<ul>
<li><a href="https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp310-cp310-linux_x86_64.whl">https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp310-cp310-linux_x86_64.whl</a></li>
<li><a href="https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp39-cp39-linux_x86_64.whl">https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp39-cp39-linux_x86_64.whl</a></li>
<li><a href="https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp38-cp38-linux_x86_64.whl">https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp38-cp38-linux_x86_64.whl</a></li>
<li><a href="https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp37-cp37m-linux_x86_64.whl">https://download.pytorch.org/whl/cu102/torch-1.12.1%2Bcu102-cp37-cp37m-linux_x86_64.whl</a></li>
</ul>

ChrisBear: <p>You are kind of right. I forgot to add that I do only have this issue on Windows. But the documentation tells that this should work for Windows and Linux. As you pointed out. There are only precompiled Linux versions.</p>

ferrophile: <p>Just want to add that the <a href="https://pytorch.org/get-started/previous-versions/" rel="noopener nofollow ugc">official previous version page</a> suggests that conda installation for CUDA 11.3 is available for Pytorch versions as old as v1.8.1, but when one browse through the <a href="https://download.pytorch.org/whl/torch/" rel="noopener nofollow ugc">actual downloadable wheels</a> the oldest version available is actually v1.10.0.</p>
<p>Not sure if this was downloadable in the past but later got removed.</p>