运行Nexus3 OSS 3.6.0-02,我已经使用以下指南在Nexus上创建了一个pypi代理存储库:
https://help.sonatype.com/repomanager3/pypi-repositories
包含以下信息:
Format: pypi
Type: proxy
URL: https://mynexus:9666/nexus/pypi-proxy/
Remote Storage:https://pypi.org/
Authentication: Username/Password现在我想安装一个包并使用上面的代理。基于:
How to get pip to work behind a proxy server
下面是这个例子:
pip install --proxy http://user:password@proxyserver:port <package> 我试过了:
pip install --proxy https://myuser:mypassword@mynexus:9666/nexus/pypi-proxy/ testinfra --no-cache-dir但我得到了:
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/我的命令行中是否有错误?或者我需要在服务器/存储库上配置什么?
发布于 2019-11-09 01:37:00
只需在索引URL的末尾添加/simple
pip install --index-url https://myuser:mypassword@mynexus:9666/nexus/pypi-proxy/simple/
发布于 2019-11-02 03:09:59
试一试
pip install --index-url http://user:password@proxyserver:port <package>
https://stackoverflow.com/questions/54554490
复制相似问题