错误:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f72686ddb10>: Failed to establish a new connection: [Errno 101] 网络不可达')': /whl/torch_stable.html
解决过程如下:
1、pip install torch==1.4.0 -i https://mirrors.ustc.edu.cn/pypi/web/simple/
报错:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f8c6cd86a90>: Failed to establish a new connection: [Errno 101] 网络不可达')': /pypi/web/simple/torch/
2、 pip install torch==1.4.0 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
报错:
3、Python | pip设置代理 & 更换镜像-CSDN博客
pip install --proxy=http://10.16.87.244:808 torch==1.4.0
4、克隆服务器上其他虚拟环境成功