gpt4 book ai didi

authentication - pip 安装失败,需要 407 代理身份验证

转载 作者:行者123 更新时间:2023-12-04 03:36:06 46 4
gpt4 key购买 nike

我正在尝试使用下面的 pip install 命令,但它因需要代理身份验证而失败。我已经在我的 RHEL7.x 服务器中配置了我的代理。

Command Used: `pip install --proxy https://'username:pwd'@proxy:host  --upgrade pip`

日志:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/pip/

最佳答案

这是您应该尝试的第一件事:

打开命令提示符(CMD)。

导出代理设置:
:\set http_proxy=http://username:password@proxyAddress:port:\set https_proxy=https://username:password@proxyAddress:port
安装你要安装的包:
:\pip install PackageName

关于authentication - pip 安装失败,需要 407 代理身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46466241/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com