WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))解决办法

问题描述:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))解决办法_第1张图片

 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/77/ec/ccdfcafb958f6007cc357ce12fd945551a71503b88cd3f78e49fd958f949/torchvision-0.14.1-cp37-cp37m-win_amd64.whl

解决办法:换pip源

win+r打开命令运行,然后输入%appdata%也可以到该文件目录

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))解决办法_第2张图片

 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))解决办法_第3张图片

 

  • 新建文件夹和文件
    • 新建一个名为pip的文件夹
    • 在pip文件夹里面新建名为pip.ini文件
    • 将下面信息添加在pip.ini文件内
[global]
timeout = 6000
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
trusted-host = pypi.tuna.tsinghua.edu.cn

 

你可能感兴趣的:(python,开发语言)