开启代理后无法正常下载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