我使用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.15
是Python 2
的最新版本之一。
我该如何解决?