SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),)

解决方法:

Install any package by marking below hosts trusted

  • pypi.python.org
  • pypi.org
  • files.pythonhosted.org

临时的解决方法:

pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org {package name}

永久的解决方法:

 Update your PIP(problem with version 9.0.1) to latest:更新到最新版本的pip

1、

pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org pytest-xdist

 2、

python -m pip install --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade pip

下载pip地址:

     https://pypi.org/simple/pip/

 
 
posted @ 2018-08-30 11:33  小さな方文辰  阅读(1225)  评论(0编辑  收藏  举报