InsecureRequestWarning:正在发出未经验证的 HTTPS 请求 - 在构建 docker 映像以使用 PIP 安装请求组件时

Swa*_*thi 5 python image pip docker

InsecureRequestWarning:正在发出未经验证的 HTTPS 请求 - 在构建 docker 映像以使用 PIP 安装请求组件时

cmd pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org \ requests \

错误: 收集请求 /usr/share/python-wheels/urllib3-1.24.1-py2.py3-none-any.whl/urllib3/connectionpool.py:849:InsecureRequestWarning:正在发出未经验证的 HTTPS 请求。强烈建议添加证书验证。请参阅:https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings /usr/share/python-wheels/urllib3-1.24.1-py2.py3-none-any.whl/ urllib3/connectionpool.py:849: InsecureRequestWarning: 正在发出未经验证的 HTTPS 请求。强烈建议添加证书验证。请参阅:https ://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings