python pip 切换到阿里云 镜像

Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/2d/47/a9fcd999bc6b5c58ef81671961b04e1913ea90817a1226c052a47a38df00/ansible_runner-1.1.0-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, '_ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'),))

阿里云 http://mirrors.aliyun.com/pypi/simple/


pip install ansible.runner -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
原文地址:https://www.cnblogs.com/hzcya1995/p/13349080.html