Pytorch Download not working for Cuda 11.8

Akshay_Pappu: <p>I am trying to download pytorch for cuda 11.8, and I followed the instructions on the pytorch website, but when I ran the ‘pip3 install torch torchvision torchaudio --index-url <a href="https://download.pytorch.org/whl/cu118" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu118</a>’ command, i got the error message:</p>
<p>“Looking in indexes: <a href="https://download.pytorch.org/whl/cu118" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu118</a><br>
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)<br>
ERROR: No matching distribution found for torch”</p>
<p>I also tried the basic cpu installation as well as the conda installation, which did not work. I also used to have conda 12.2 and i downgraded to 11.8 just to see if maybe it woudl work. Can someone please help me?</p>

ptrblck: <aside class="quote no-group" data-username="Akshay_Pappu" data-post="1" data-topic="189523">
<div class="title">
<div class="quote-controls"></div>
<img loading="lazy" alt="" width="24" height="24" src="https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/akshay_pappu/48/61652_2.png" class="avatar"> Akshay_Pappu:</div>
<blockquote>
<p>I also used to have conda 12.2 and i downgraded to 11.8 just to see if maybe it woudl work.</p>
</blockquote>
</aside>
<p>I assume you mean CUDA. Note that your locally CUDA toolkit won’t be used unless you build PyTorch from source or a custom CUDA extension. The binaries ship with their own dependencies.</p>
<p>The install command works for me on Linux with Python3.10:</p>
<pre data-code-wrap="python"><code class="lang-python">pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Looking in indexes: https://download.pytorch.org/whl/cu118
Collecting torch
  Downloading https://download.pytorch.org/whl/cu118/torch-2.1.0%2Bcu118-cp310-cp310-linux_x86_64.whl (2325.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 GB 19.1 MB/s eta 0:00:00
Collecting torchvision
  Downloading https://download.pytorch.org/whl/cu118/torchvision-0.16.0%2Bcu118-cp310-cp310-linux_x86_64.whl (6.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 18.3 MB/s eta 0:00:00
Collecting torchaudio
  Downloading https://download.pytorch.org/whl/cu118/torchaudio-2.1.0%2Bcu118-cp310-cp310-linux_x86_64.whl (3.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 19.5 MB/s eta 0:00:00
...
Collecting triton==2.1.0 (from torch)
  Downloading https://download.pytorch.org/whl/triton-2.1.0-0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (89.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.2/89.2 MB 18.0 MB/s eta 0:00:00
...
Successfully installed MarkupSafe-2.1.2 certifi-2022.12.7 charset-normalizer-2.1.1 filelock-3.9.0 fsspec-2023.4.0 idna-3.4 jinja2-3.1.2 mpmath-1.3.0 networkx-3.0 numpy-1.24.1 pillow-9.3.0 requests-2.28.1 sympy-1.12 torch-2.1.0+cu118 torchaudio-2.1.0+cu118 torchvision-0.16.0+cu118 triton-2.1.0 typing-extensions-4.4.0 urllib3-1.26.13
</code></pre>
<pre data-code-wrap="python"><code class="lang-python">python -c "import torch; print(torch.__version__)"
2.1.0+cu118
</code></pre>