常见问题解决 --- pip报错【WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, st】

GKLBB / 2023-05-14 / 原文

问题现象

【WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, st】

解决方法:

出现该错误信息是因为pip源连接证书验证失败,增加参数 --trusted-host

例如 pip install matplotlib -i http://mirrors.aliyun.com/pypi/simple --trusted-host mirrors.aliyun.com