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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM