码迷,mamicode.com
首页 > 编程语言 > 详细

Python djangorestframework安装库报错SSL: CERTIFICATE_VERIFY_FAILED

时间:2017-07-19 14:27:09      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:命令行选项   UI   min   from   pypi   ssl   int   pretty   could   

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

标签:命令行选项   UI   min   from   pypi   ssl   int   pretty   could   

原文地址:http://www.cnblogs.com/twyth/p/7204724.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!