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证书验证。请注意,这可能会存在一定的安全风险,请谨慎使用。

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

你可能感兴趣的:(无主之地3,Borderlands3,酸奶公园网页作业,人工智能)