title: Create and use a PyPi proxy repository on nexus
body: <p>Running Nexus 3 OSS 3.6.0-02 I have created a pypi proxy repository on nexus using this guide:</p>
  
  <p><a href="https://help.sonatype.com/repomanager3/pypi-repositories" rel="noreferrer">https://help.sonatype.com/repomanager3/pypi-repositories</a></p>
  
  <p>With the following info:</p>
  
  <pre><code>Format: pypi
  Type: proxy
  URL: https://mynexus:9666/nexus/pypi-proxy/
  Remote Storage:https://pypi.org/
  Authentication: Username/Password
  </code></pre>
  
  <p>Now I would like to install a package and use the above proxy. Based on:</p>
  
  <p><a href="https://stackoverflow.com/questions/19080352/how-to-get-pip-to-work-behind-a-proxy-server/23103309">How to get pip to work behind a proxy server</a></p>
  
  <p>and this example:</p>
  
  <pre><code>pip install --proxy http://user:password@proxyserver:port &lt;package&gt;   
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>pip install --proxy https://myuser:mypassword@mynexus:9666/nexus/pypi-proxy/ testinfra --no-cache-dir
  </code></pre>
  
  <p>But I get:</p>
  
  <pre><code>Collecting testinfra
    Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Invalid response from tunnel request',))': /simple/testinfra/
  </code></pre>
  
  <p>Is there and error in my command line? Or something I need to configure on the server/repository?</p>