pip安装报错 WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

(unet) C:\Users\12031>pip install netCDF4 scikit-image matplotlib lpips einops timm
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'))': /simple/netcdf4/
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'))': /simple/netcdf4/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/netcdf4/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/netcdf4/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError(0, 'Error'))': /simple/netcdf4/
ERROR: Could not find a version that satisfies the requirement netCDF4 (from versions: none)
ERROR: No matching distribution found for netCDF4

2348c362354a32877702b434245643.png)

解决一:换源

pip install  scikit-image matplotlib lpips einops timm --index-url https://mirrors.aliyun.com/pypi
/simple/

解决2:使用原始源

pip install  scikit-image matplotlib lpips einops timm --index-url  https://pypi.org/simple

解决3:加入trust

pip install netCDF4 scikit-image matplotlib lpips einops timm -i  https://mirrors.aliyun.com/pypi/simple/ --trusted-host pypi.aliyun.com

解决4:改变pipy版本

python -m pip install pip==20.2 --index-url https://pypi.org/simple

最终方法:大概率就是自己网络的问题
1.换一个WiFi尝试一下
2.是否自己挂的有梯子,取消再试试

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值