Bash Windows 10 하위 시스템의 Python에서 SNIMissingWarning 및 InsecurePlatformWarning

Bash Windows 10 하위 시스템의 Python에서 SNIMissingWarning 및 InsecurePlatformWarning

저는 Windows 10의 Ubuntu에서 Bash를 실행하는 것을 정말 좋아하지만 Python이 종종 경고를 표시하는 것을 발견했습니다. 이러한 경고를 해결하려면 어떻게 해야 합니까? 감사해요

그건 그렇고, 경고의 링크는 이러한 경고가 무엇을 의미하는지 알려주지만 이를 올바르게 해결하는 방법에 대한 지침도 있습니다. 문서에는 실제로 비활성화_경고()를 수행할 수 있다고 나와 있지만 이것이 최선의 방법은 아니라고 생각합니다.

(cv) antony@ThinkPad:~$ pip freeze
backports.shutil-get-terminal-size==1.0.0
decorator==4.0.10
enum34==1.1.6
ipython==5.1.0
ipython-genutils==0.1.0
numpy==1.11.3
pathlib2==2.1.0
pexpect==4.2.1
pickleshare==0.7.4
prompt-toolkit==1.0.9
ptyprocess==0.5.1
Pygments==2.1.3
simplegeneric==0.8.1
six==1.10.0
traitlets==4.3.1
wcwidth==0.1.7
/home/antony/.virtualenvs/cv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/home/antony/.virtualenvs/cv/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning

관련 정보