The PIP installation module warns INSECUREPLATFORMWARNING:A True Sslcontext object is not available.

Source: Internet
Author: User
Tags openssl ssl connection

http://blog.csdn.net/henulwj/article/details/48131393/

The following warning occurs when installing a Third-party module with the pip7.1.2 version:

<code class= "Hljs avrasm has-numbering" >/usr/lib/python2<span class= "Hljs-number" >.7</span>/ Site-packages/pip-<span class= "Hljs-number" >7.1</span><span class= "Hljs-number" >.2</span >-py2<span class= "Hljs-number" >.7</span><span class= "Hljs-preprocessor" >.egg</span>/ Pip/_vendor/requests/packages/urllib3/util/ssl_<span class= "Hljs-preprocessor" >.py</span>:<span class= "Hljs-number" >90</span&gt: <span class= "Hljs-label" >InsecurePlatformWarning:</span> A 
True Sslcontext object is not available. This prevents URLLIB3 from configuring SSL appropriately <span class= "Hljs-keyword" >and</span> may cause Cert Ain SSL connections to fail. For more information, <span class= "Hljs-label" >https:</span>//urllib3<span class= " Hljs-preprocessor ">.readthedocs</span><span class=" Hljs-preprocessor ">.org</span>/en/ Latest/security<span class= "hljs-preprocessor ">.html</span><span class=" Hljs-preprocessor "> #insecureplatformwarning. </span></code ><ul style= "Display:block" class= "pre-numbering" ><li>1</li><li>2</li><li >3</li><li>4</li><li>5</li></ul>

Prompt is due to URLLIB3 SSL connection failure resolution

First install Python-devel Libffi-devel openssl-devel

Yum Install Python-devel libffi-devel openssl-devel

After installing the Pyopenssl ndg-httpsclient PYASN1

Pip Install Pyopenssl ndg-httpsclient PYASN1

There is no warning when running the PIP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.