Issue Installing PyTorch

username: ctrlaltdelete
cooked: <p>It seems I am not able to download any version of PyTorch.  When installing either with the PyCharm package manager or through pip terminal commands, I get the following error:<br>
warning: missing-index-doctype</p>
<p>× The package index page being used does not have a proper HTML doctype declaration.<br>
╰─&gt; Problematic URL: <a href="https://download.pytorch.org/whl/cu113/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu113/torch_stable.html</a></p>
<p>note: This is an issue with the page at the URL mentioned above.<br>
hint: You might need to reach out to the owner of that package index, to get this fixed. See <a href="https://github.com/pypa/pip/issues/10825" class="inline-onebox" rel="noopener nofollow ugc">[DEPRECATION] Moving away from html5lib to html.parser · Issue #10825 · pypa/pip · GitHub</a> for context.<br>
ERROR: Could not find a version that satisfies the requirement torch==1.10.2+cu113 (from versions: none)<br>
ERROR: No matching distribution found for torch==1.10.2+cu113</p>
<p>A similar error occurs no matter which version or cuda version command I enter. I am using Python 3.8.2 on Windows 10. Does anyone have a work around for this?</p>
<p>Thanks in advance,<br>
Neil</p>

username: aiGeekProgrammer
cooked: <p>I think this is a similar problem to this one:</p><aside class="onebox githubissue" data-onebox-src="https://github.com/wxWidgets/Phoenix/issues/2102">
  <header class="source">

      <a href="https://github.com/wxWidgets/Phoenix/issues/2102" target="_blank" rel="noopener nofollow ugc">github.com/wxWidgets/Phoenix</a>
  </header>

  <article class="onebox-body">
    <div class="github-row">
  <div class="github-icon-container" title="Issue">
	  <svg width="60" height="60" class="github-icon" viewbox="0 0 14 16" aria-hidden="true"><path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"></path></svg>
  </div>

  <div class="github-info-container">
    <h4>
      <a href="https://github.com/wxWidgets/Phoenix/issues/2102" target="_blank" rel="noopener nofollow ugc">Warning output for pip 22.0: bad-index-doctype for snapshot builds</a>
    </h4>

    <div class="github-info">
      <div class="date">
        opened <span class="discourse-local-date" data-format="ll" data-date="2022-02-08" data-time="12:09:01" data-timezone="UTC">12:09PM - 08 Feb 22 UTC</span>
      </div>


      <div class="user">
        <a href="https://github.com/DivingDuck" target="_blank" rel="noopener nofollow ugc">
          <img alt="DivingDuck" src="https://avatars.githubusercontent.com/u/8143022?v=4" class="onebox-avatar-inline" width="20" height="20">
          DivingDuck
        </a>
      </div>
    </div>

    <div class="labels">
    </div>
  </div>
</div>

  <div class="github-row">
    <p class="github-body-container">Hello,

I recently got a warning from actual pip 22.x about bad-index-doctype <span class="show-more-container"><a href="" rel="noopener" class="show-more">…</a></span><span class="excerpt hidden">for snapshot builds. I can work around this, but it is maybe a good idea to change the snapshot index page to html5 syntax.

**Operating system**: Windows 10 x64
**wxPython version &amp; source**:  4.1.2a1.dev5304+7c8318e8
**Python version &amp; source**:  Python &gt;=3.7.x + pip22.0

**Description of the problem**:

Calling **pip install -U --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython** generates the warning below:

```
Looking in links: https://wxpython.org/Phoenix/snapshot-builds/
Requirement already satisfied: wxPython in c:\users\armin\source\repos\divingduck\printrun\v3\lib\site-packages (4.1.2a1.dev5304+7c8318e8)
**warning: bad-index-doctype**

× The package index page being used does not have a proper HTML doctype declaration.
╰─&gt; Problematic URL: https://wxpython.org/Phoenix/snapshot-builds/

note: This is an issue with the page at the URL mentioned above.
hint: You might need to reach out to the owner of that package index, to get this fixed. See https://github.com/pypa/pip/issues/10825 for context.
```
**How to solve the problem is described here:**
https://github.com/pypa/pip/issues/10825

Best regards, 
DD</span></p>
  </div>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p><strong>How to solve the problem is described here:</strong><br>
<a href="https://github.com/pypa/pip/issues/10825" rel="noopener nofollow ugc">pypa/pip#10825</a></p>

username: ctrlaltdelete
cooked: <p>Unfortunately the solutions there (notably passing --use-deprecated=html5lib) does not work for PyTorch, as mentioned by others on the thread who have tried. Any other workaround?</p>

username: aiGeekProgrammer
cooked: <p>Right. Looks like pip became more strict about standards and this affected pytorch.<br>
I would try to downgrade pip installer.</p>
<p>Some people in this thread recommended:</p>
<pre><code class="lang-auto">pip3 install --no-cache --upgrade pip==21.3.1 -i https://pypi.org/simple/
</code></pre>
<p>to get 21.x</p>
<p>or</p>
<p><code>python -m pip uninstall pip &amp;&amp; python -m ensurepip</code><br>
to get a version of <code>pip</code> that was bundled with your Python version.</p>
<p>Good idea to do this kind of stuff in virtual environments, if possible</p>

username: ctrlaltdelete
cooked: <p>Tried this as well. This eliminates the original “missing-index-doctype” warning, yet the error remains:<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’ve tried a few pip versions, and as long as its &lt;22.0 the html error goes away. I will try going through conda.</p>