报错信息
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)'),))
vi /etc/pip.conf
[global]
timeout = 6000
index-url = http://pypi.douban.com/simple/
extra-index-url = https://www.piwheels.org/simple/
[install]
use-mirrors = true
mirrors = http://pypi.douban.com/simple/
trusted-host = pypi.douban.com
测试
pip3 --version
pip3 install docker
pip更新命令
pip install --upgrade --trusted-host pypi.org --trusted-host files.pythonhosted.org pip