问题描述:
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%也可以到该文件目录
- 新建文件夹和文件
- 新建一个名为pip的文件夹
- 在pip文件夹里面新建名为pip.ini文件
- 将下面信息添加在pip.ini文件内
[global]timeout = 6000index-url = https://pypi.tuna.tsinghua.edu.cn/simpletrusted-host = pypi.tuna.tsinghua.edu.cn
来源地址:https://blog.csdn.net/qq_46226356/article/details/129989704