Not install torch 1.4.0 for Windows

Sheikh: <p>hi. i can not install torch 1.4.0 using command pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f <a href="https://download.pytorch.org/whl/torch_stable.html" rel="nofollow noopener">https://download.pytorch.org/whl/torch_stable.html</a><br>
create error: Could not find a version that satisfiles the requirment torch==1.4.0+cpu (from versions: 0.1.2, 0.1.2post1, 0.1.2.post2)</p>

albanD: <p>Do you have the latest pip version? Also which version of python are you using?</p>

Sheikh: <p>Pip 20.0.2 Python 3.6</p>

albanD: <p>Have you tried the solution from this other post: <a href="https://discuss.pytorch.org/t/torch-version-problem/57907" class="inline-onebox">Torch version problem</a> ?</p>

Sheikh: <p>On the <a href="http://pypi.org" rel="nofollow noopener">pypi.org</a> in the section “Download files” for Version torch 1.4.0 there are No files for Windows.</p>

albanD: <p>That’s why there is a <code>-f</code> in the command. So that you use the wheels from this list: <a href="https://download.pytorch.org/whl/torch_stable.html">https://download.pytorch.org/whl/torch_stable.html</a><br>
In particular, the one you want is <a href="https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp36-cp36m-win_amd64.whl">https://download.pytorch.org/whl/cpu/torch-1.4.0%2Bcpu-cp36-cp36m-win_amd64.whl</a></p>

albanD: <p>Do you have a python 32bit by any chance?</p>

Sheikh: <p>I have Python 64 bit.</p>

albanD: <p>So the wheel I linked above should work properly for you.</p>

Sheikh: <p>Thank you very much for the help. I used files from the site and I was able to install Version 1.4.0.</p>

akinnae: <p>Which one would work for pip 20.1.1 &amp; Python 3.7.3?</p>

albanD: <p>The command from the website should work fine no?</p>

akinnae: <p>You mean from <a href="https://pytorch.org/" rel="noopener nofollow ugc">here</a>?<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/e/d/ed6a8c9f349608be860ba251339d1ef1905c21ef.png" data-download-href="https://discuss.pytorch.org/uploads/default/ed6a8c9f349608be860ba251339d1ef1905c21ef" title="image"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/ed6a8c9f349608be860ba251339d1ef1905c21ef_2_690x262.png" alt="image" data-base62-sha1="xShrmsPftizLG5Amte97b0Vyx6T" width="690" height="262" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/ed6a8c9f349608be860ba251339d1ef1905c21ef_2_690x262.png, https://discuss.pytorch.org/uploads/default/optimized/3X/e/d/ed6a8c9f349608be860ba251339d1ef1905c21ef_2_1035x393.png 1.5x, https://discuss.pytorch.org/uploads/default/original/3X/e/d/ed6a8c9f349608be860ba251339d1ef1905c21ef.png 2x" data-dominant-color="F6DAD5"><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">1199×456 26.1 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>I specifically need torch 1.4 (for <a href="https://github.com/facebookresearch/ParlAI/blob/master/README.md#installing-parlai" rel="noopener nofollow ugc">ParlAI</a>), and it looks like that’s not on the “previous versions of PyTorch” page. Maybe I’m just missing something obvious?</p>

albanD: <p>In the previous version you have an example command for all versions &gt; 1.0<br>
So just replace the <code>1.2.0</code> in the example <code>1.4.0</code> should work.</p>

akinnae: <pre><code class="lang-auto">Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.4.0+cpu (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2)
ERROR: No matching distribution found for torch==1.4.0+cpu
</code></pre>
<p>After trying:<br>
<code>pip install torch==1.4.0+cpu torchvision==0.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html</code></p>

albanD: <p>Do you have the latest pip?<br>
Also you will need a 64 bit python. We don’t provide binaries for 32bit python.</p>

akinnae: <p>Oh, yep, I have 32bit python. I tried it in a virtual environment with 64 bit python and it worked. <img src="https://discuss.pytorch.org/images/emoji/apple/woman_facepalming.png?v=9" title=":woman_facepalming:" class="emoji" alt=":woman_facepalming:"> Thanks!</p>