Python djangorestframework安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Python djangorestframework安装库报错SSL: CERTIFICATE_VERIFY_FAILED相关的知识,希望对你有一定的参考价值。

Python djangorestframework 安装库报错SSL: CERTIFICATE_VERIFY_FAILED

问题描述

使用pip按照virtualenv报错,如下:

pip install djangorestframework
Collecting djangorestframework
  Could not fetch URL https://pypi.python.org/simple/djangorestframework/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement djangorestframework(from versions: )

解决办法

使用–trusted-host命令行选项

pip --trusted-host pypi.python.org install djangorestframework

以上是关于Python djangorestframework安装库报错SSL: CERTIFICATE_VERIFY_FAILED的主要内容,如果未能解决你的问题,请参考以下文章

Python代写,Python作业代写,代写Python,代做Python

Python开发

Python,python,python

Python 介绍

Python学习之认识python

python初识