PyTorch Is not installing PIP - latest version

anand388: <p>Here is the Pip command I used. I got it from the official website (<a href="https://pytorch.org/get-started/locally/" class="inline-onebox" rel="noopener nofollow ugc">Start Locally | PyTorch</a>)</p>
<pre><code class="lang-auto">pip3 install torch==1.10.1+cu102 torchvision==0.11.2+cu102 torchaudio===0.10.1+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html
</code></pre>
<p>The Error</p>
<pre><code class="lang-auto">ERROR: Could not find a version that satisfies the requirement torch==1.10.1+cu102 (from versions: none)
ERROR: No matching distribution found for torch==1.10.1+cu102
</code></pre>
<p>I think I know why the installation is not working.</p>
<p>The Pip command is trying to install a Module from the website listings (<a href="https://download.pytorch.org/whl/cu102/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu102/torch_stable.html</a>)<br>
The Modules pip is trying to install are</p>
<pre><code class="lang-auto">torch==1.10.1+cu102
torchvision==0.11.2+cu102
torchaudio===0.10.1+cu102
</code></pre>
<p>the Modules are Non-existing, not on the list that is why the errors happened.</p>
<p>the Owners need to update this problem</p>

ptrblck: <p>The pip wheels exist at the linked location (e.g. <a href="https://download.pytorch.org/whl/cu102/torch-1.10.1%2Bcu102-cp39-cp39-linux_x86_64.whl">here</a> is the Python3.9 pip wheel for Linux) and your posted command also works fine for me:</p>
<pre><code class="lang-python">pip install torch==1.10.1+cu102 torchvision==0.11.2+cu102 torchaudio===0.10.1+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html
Looking in links: https://download.pytorch.org/whl/cu102/torch_stable.html
Collecting torch==1.10.1+cu102
  Downloading https://download.pytorch.org/whl/cu102/torch-1.10.1%2Bcu102-cp38-cp38-linux_x86_64.whl (881.9 MB)
     |████████████████████████████████| 881.9 MB 34 kB/s              
Collecting torchvision==0.11.2+cu102
  Downloading https://download.pytorch.org/whl/cu102/torchvision-0.11.2%2Bcu102-cp38-cp38-linux_x86_64.whl (23.2 MB)
     |████████████████████████████████| 23.2 MB 12.5 MB/s            
Collecting torchaudio===0.10.1+cu102
  Downloading https://download.pytorch.org/whl/cu102/torchaudio-0.10.1%2Bcu102-cp38-cp38-linux_x86_64.whl (2.9 MB)
     |████████████████████████████████| 2.9 MB 14.4 MB/s            
Requirement already satisfied: typing-extensions in ./miniforge3/envs/tmp/lib/python3.8/site-packages (from torch==1.10.1+cu102) (4.0.0)
Collecting pillow!=8.3.0,&gt;=5.3.0
  Using cached Pillow-8.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Collecting numpy
  Using cached numpy-1.21.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
Installing collected packages: torch, pillow, numpy, torchvision, torchaudio
  Attempting uninstall: torch
    Found existing installation: torch 1.10.0
    Uninstalling torch-1.10.0:
      Successfully uninstalled torch-1.10.0
  Attempting uninstall: torchaudio
    Found existing installation: torchaudio 0.10.0
    Uninstalling torchaudio-0.10.0:
      Successfully uninstalled torchaudio-0.10.0
Successfully installed numpy-1.21.5 pillow-8.4.0 torch-1.10.1+cu102 torchaudio-0.10.1+cu102 torchvision-0.11.2+cu102
</code></pre>
<p>I don’t know if you might be facing a Python version mismatch (supported versions are 3.6-3.9), are using a 32bit Python installation, or outdated <code>pip</code> versions, which can’t find the wheels.</p>

anand388: <p>I am on Windows 10<br>
and i am using</p>
<p>Python 3.10<br>
Pip (21.3.1)</p>

ptrblck: <p>You would need to use an older Python version, as 3.10 is not supported yet.</p>

anand388: <p>Thank you.</p>
<p>is it possible you can write on the website what version of python is needed for each pyTorch version?</p>

ptrblck: <p>This might be possible, so feel free to create a feature request on GitHub. <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=12" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"><br>
Currently the install instructions mention:</p>
<blockquote>
<p>It is recommended that you use Python 3.6, 3.7 or 3.8, which can be installed via any of the mechanisms above .</p>
</blockquote>
<p>and I’m mostly using 3.8, so unsure if 3.9 has any (known) issues.</p>

Shittheswaran_Selvak: <p><a class="mention" href="/u/anand388">@anand388</a>  and <a class="mention" href="/u/ptrblck">@ptrblck</a>  your conversation helped me a lot to solve my issue with the installation of Pytorch.Thank you so much…</p>