zoukankan      html  css  js  c++  java
  • Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

    Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

    问题描写叙述

    使用pip依照virtualenv报错,例如以下:

    pip install virtualenv
    Collecting virtualenv
    /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
      SNIMissingWarning
      Could not fetch URL https://pypi.python.org/simple/virtualenv/: 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 virtualenv (from versions: )

    解决的方法

    使用–trusted-host命令行选项

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

    转载请以链接形式标明本文地址
    本文地址:http://blog.csdn.net/kongxx/article/details/51187482

  • 相关阅读:
    正则表达式
    字节流和字符流小练习
    File汇总
    java一不容易就容易错的知识点汇总
    a++和++a区别
    线程安全的3种方式
    bs4和css选择器的基本使用
    清点作业情况
    cookie和session的使用
    用post请求制作翻译
  • 原文地址:https://www.cnblogs.com/yangykaifa/p/7355132.html
Copyright © 2011-2022 走看看