SNIMissingWarning и InsecurePlatformWarning в Python на подсистеме Bash Windows 10

SNIMissingWarning и InsecurePlatformWarning в Python на подсистеме Bash Windows 10

Мне очень нравится запускать Bash на Ubuntu на Windows 10, но я заметил, что python часто выдает предупреждения. Как мне устранить эти предупреждения? Спасибо

Кстати, ссылки из предупреждений говорят только о том, что означают эти предупреждения, но нет инструкций о том, как правильно их решать. В документации на самом деле указано, что можно отключить disable_warnings(), но я не думаю, что это лучшая практика.

(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

Связанный контент