title: Pypiserver WRONG_VERSION_NUMBER
body: <p>On windows, I have a simple conda env named <code>pypitester</code>.</p>
  <p>On a linux I am hosting a private <code>pypiserver</code> which loads when I call it on <code>http://{IP}:8888/simple/</code>:
  <a href="https://i.stack.imgur.com/exldg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/exldg.png" alt="enter image description here" /></a></p>
  <p>I can load the url and see the contents. I was able to upload to my server using <code>twine</code> using:</p>
  <pre><code>twine upload --repository-url http://{IP}:8888 {PATH_TO_PROJ}/dist/
  </code></pre>
  <p>On windows, I updated my <code>C:\ProgramData\pip\pip.ini</code> to contain:</p>
  <pre><code>[global]
  trusted-host = pypi.org files.pythonhosted.org {IP}:8888
  extra-index-url = http://{IP}:8888/simple
  </code></pre>
  <p>Within a new conda env, I call:</p>
  <pre><code>&gt;set https_proxy=http://{IP}:8888
  &gt;set http_proxy=http://{IP}:8888
  </code></pre>
  <p>Followed by:</p>
  <pre><code>&gt;pip install MyPrivateLib
  </code></pre>
  <p>I get back:</p>
  <pre><code>&gt;pip install MyPrivateLib
  Looking in indexes: https://pypi.org/simple, http://{IP}:8888/simple
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:997)'))': /simple/myprivatelib/
  ERROR: Could not find a version that satisfies the requirement MyPrivateLib (from versions: none)
  ERROR: No matching distribution found for MyPrivateLib
  </code></pre>
  <p>When I load <code>http://{IP}:8888/simple/myprivatelib/</code> in a browser, it loads immediately.</p>
  <p>If I specify a version I see listed in simple (eg: 1.0.1) I get:</p>
  <pre><code>ERROR: Could not find a version that satisfies the requirement MyPrivateLib==1.0.1 (from versions: none)
  ERROR: No matching distribution found for MyPrivateLib==1.0.1
  </code></pre>
  <p>The questions being:</p>
  <ol>
  <li>How do I resolve this?</li>
  <li>Am I doing something wrong generally speaking?</li>
  </ol>
  <p>I want to host private repost internally and be able to install them on the fly in a verion-specificied way.</p>