如何修复SNIMissingWarning?

时间:2019-02-28 11:15:40

标签: python python-2.7 urllib3

我使用OSX和python 2.7.15:

$ python --version
Python 2.7.15

但是,当我运行.py脚本之一时,却收到此错误:

/usr/local/lib/python2.7/dist-packages/urllib3/util/ssl_.py:354: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning

我相信2.7.15Python 2的最新版本之一。

我该如何解决?

0 个答案:

没有答案