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/

 
 
原文地址:https://www.cnblogs.com/fangwenchen/p/9559176.html