No matching distribution found for torch==1.13.1+cu117

Creed: <p>Hi, I am trying to install pytorch with the specific CUDA version of 11.7 and I can only use pip for now. But the recommended command on the official website for Linux-pip-python-cuda 11.7 is a general command “pip3 install torch torchvision torchaudio” and this command always gave me CUDA version of 11.4 which is not what I want. However, when I tried to specify the version based on other commands suggested from this forum or other forum (e,g, github, StackOverflow etc.), it always said something about the 403 forbidden error and no matching distribution found for torch==1.13.1+cu117. I have attached a screenshot as the example. Could anybody please help me?</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/7/c/7c27274926e8a2116975631ae2fa135bff3003e0.png" data-download-href="https://discuss.pytorch.org/uploads/default/7c27274926e8a2116975631ae2fa135bff3003e0" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/7/c/7c27274926e8a2116975631ae2fa135bff3003e0_2_690x210.png" alt="image" data-base62-sha1="hIj5IyBw483AV6DMhc9wIl47sBi" width="690" height="210" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/7/c/7c27274926e8a2116975631ae2fa135bff3003e0_2_690x210.png, https://discuss.pytorch.org/uploads/default/optimized/3X/7/c/7c27274926e8a2116975631ae2fa135bff3003e0_2_1035x315.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/7/c/7c27274926e8a2116975631ae2fa135bff3003e0_2_1380x420.png 2x" data-dominant-color="343123"><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">image</span><span class="informations">2725×831 226 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>Many thanks in advance.</p>

ptrblck: <p>The default pip wheels for PyTorch uploaded to PyPI are using the CUDA 11.7 as a dependency and thus <code>pip install torch</code> should download <code>1.13.1+cu117</code>.</p>

Creed: <p>Thank you so much for the reply. I followed your suggestion, created a clean environment and executed pip install torch only, it still gave me CUDA version of 11.4 (also it seems like I installed torch-1.13.1+computecanada in which computecanada is a totally strange word to me; I don’t know if this could have something to do with my struggling). I attached screenshots for your convenience.</p>
<p><div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/2/3/230e746bb482f83387756eea47e3b4720542e6cf.png" data-download-href="https://discuss.pytorch.org/uploads/default/230e746bb482f83387756eea47e3b4720542e6cf" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/2/3/230e746bb482f83387756eea47e3b4720542e6cf_2_690x98.png" alt="image" data-base62-sha1="507GctmhvZ3MAallVSaKfwu1Q9V" width="690" height="98" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/2/3/230e746bb482f83387756eea47e3b4720542e6cf_2_690x98.png, https://discuss.pytorch.org/uploads/default/optimized/3X/2/3/230e746bb482f83387756eea47e3b4720542e6cf_2_1035x147.png 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/2/3/230e746bb482f83387756eea47e3b4720542e6cf_2_1380x196.png 2x" data-dominant-color="2B2B2B"><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">image</span><span class="informations">2732×390 64.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></p>
<p><img src="https://discuss.pytorch.org/uploads/default/original/3X/f/4/f4e4fbb6040efff38acaf08b673b66c775bef84e.png" alt="image" data-base62-sha1="yWr61ncYBW0XGlBFnBVewuDEuPc" width="410" height="255"></p>
<p>Many thanks for your kind help <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"></p>

ptrblck: <aside class="quote no-group" data-username="Creed" data-post="3" data-topic="174577">
<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/eb8c5e/48.png" class="avatar"> Creed:</div>
<blockquote>
<p>(also it seems like I installed torch-1.13.1+computecanada in which computecanada is a totally strange word to me; I don’t know if this could have something to do with my struggling</p>
</blockquote>
</aside>
<p>It seems you might have added a <code>computecanada</code> mirror to your <code>pip</code> environment?<br>
I don’t know what exactly <code>computecanada</code> is but it seems they are hosting some wheels as shown e.g. <a href="https://docs.alliancecan.ca/wiki/Available_Python_wheels">here</a> and <a href="https://github.com/ComputeCanada/avail_wheels">here</a>.</p>
<p>Check what your <code>~/.config/pip/pip.conf</code> or <code>~/.pip/pip.conf</code> shows and if these index urls were added there.</p>

anjegithub: <p>hello,can you explain how to do it, im new here and im not good in this.please…should i download <code>1.13.1+cu117</code> .</p>

anjegithub: <p>i have the same problem , can you explain how did you solve it</p>

ptrblck: <p>I’m not familiar with these custom wheels by <code>computecanada</code> and thus cannot recommend installing and using them.<br>
To install our binaries, visit <a href="https://pytorch.org/get-started/locally/">our website</a>, select the desired config from the install matrix, and run the created command in your setup.</p>

Mu_Kee_Kee: <p>my pip version:<br>
pip 22.3.1<br>
Below is my command to install cu11.7:<br>
pip install torch torchvision torchaudio --extra-index-url <a href="https://download.pytorch.org/whl/cu117" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu117</a></p>
<p>print(torch.<strong>version</strong>)<br>
2.0.1+cu117</p>
<p>I can successfully install cu117</p>