WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after conne

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘download.pytorch.org’, port=443): Read timed out. (read timeout=15)”)’: /whl/lts/1.8/cu102/torchvision/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1131)’))’: /whl/lts/1.8/cu102/torchvision/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1131)’))’: /whl/lts/1.8/cu102/torchvision/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1131)’))’: /whl/lts/1.8/cu102/torchvision/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1131)’))’: /whl/lts/1.8/cu102/torchvision/
Could not fetch URL https://download.pytorch.org/whl/lts/1.8/cu102/torchvision/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘download.pytorch.org’, port=443): Max retries exceeded with url: /whl/lts/1.8/cu102/torchvision/ (Caused by SSLError(SSLZeroReturnError(6, ‘TLS/SSL connection has been closed (EOF) (_ssl.c:1131)’))) - skipping 这些警告提
示表明连接下载源时遇到了问题。可能是由于连接超时或SSL证书验证失败导致的。你可以尝试以下几种方法来解决这个问题:

  1. 首先,确保你的网络连接正常,并且可以访问下载源(https://download.pytorch.org)。
  2. 如果你使用的是代理服务器,请确保代理服务器的设置正确,并且没有阻止该下载源的访问。
  3. 尝试使用--timeout参数来增加连接超时时间,例如:
    pip3 install torch==1.8.2 torchvision==0.9.2 --timeout 100
    
    这将增加连接超时时间为100秒。你可以根据需要调整超时时间。
  4. 如果你的网络环境限制了SSL连接,请尝试使用--trusted-host参数来跳过SSL证书验证,例如:
    pip3 install torch==1.8.2 torchvision==0.9.2 --trusted-host download.pytorch.org
    
    这将跳过SSL证书验证。请注意,这可能会存在一定的安全风险,请谨慎使用。

如果问题仍然存在,建议尝试使用其他网络环境(例如使用不同的网络连接或者更换网络),或者等待一段时间后再次尝试安装。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值