SNIMissingWarning und InsecurePlatformWarning in Python im Bash Windows 10-Subsystem

SNIMissingWarning und InsecurePlatformWarning in Python im Bash Windows 10-Subsystem

Ich verwende Bash sehr gerne auf Ubuntu unter Windows 10, aber mir ist aufgefallen, dass Python häufig Warnungen ausspuckt. Wie kann ich diese Warnungen beheben? Danke

Übrigens sagen Ihnen die Links zu den Warnungen nur, was diese Warnungen bedeuten, aber es gibt Anweisungen, wie Sie sie richtig beheben können. Die Dokumentation zeigt tatsächlich, dass Sie disable_warnings() verwenden können, aber ich glaube nicht, dass das die beste Vorgehensweise ist.

(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

verwandte Informationen