WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))

开启代理后无法正常下载Python包提示:
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))
在这里插入图片描述
不开启代理下载过程很慢速度就几百k,如何解决。
首先,需要一个VPN,解决办法详情如下:
解决办法:
查看你的代理接口号码:以我的为例就是60033
在这里插入图片描述
以安装Pytorch为例
在这里插入图片描述

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

报错如下:

(.venv) D:\多模态实体识别\adaseq git:[master]
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121
Looking in indexes: https://download.pytorch.org/whl/cu121
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /whl/cu121/torch/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /whl/cu121/torch/
WARNING: Retrying (R
引用 引用 certificate ... 引用中提到了SSL证书验证失败的错误,这可能是由于证书过期或不受信任导致的。同时,在引用中也提到了ReadTimeoutError的错误提示,这可能是由于连接超时导致的。 针对这个问题,有几种常见的解决方法可以尝试: 1. 更新或重新安装证书:可以尝试更新或重新安装相关的SSL证书,确保其有效并受信任。这可以通过下载最新的证书文件并将其安装到系统中来完成。 2. 检查网络连接:检查网络连接是否正常并且稳定。如果网络连接不稳定或速度较慢,可能会导致连接超时的问题。 3. 使用代理服务器:尝试使用代理服务器来连接到目标网站。有时候使用代理服务器可以解决连接问题。 4. 使用其他源或镜像:如果是在安装Python库时出现问题,可以尝试使用其他源或镜像来下载库文件。有时候源或镜像的问题可能会导致下载失败。 需要注意的是,以上解决方法可能并不适用于所有情况。具体的解决方法还需要根据具体的错误提示和环境来确定。希望以上解决方案对你有所帮助。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,status =None))connect broken解决...](https://blog.youkuaiyun.com/weixin_43178406/article/details/129298593)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [rpa-kot-kintai:RPA,用于在“时间之王”中输入出勤记录](https://download.youkuaiyun.com/download/weixin_42139302/18293562)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值