虚拟环境中设置代理以及pip install

错误:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError(': 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(': 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、克隆服务器上其他虚拟环境成功
 

你可能感兴趣的:(学习,人工智能,conda,python)