Python error installing ez_setup.py "Failed to create secure SSL / TLS channel"

Python Version: 2.7.13

OS: Windows Server 2012

I follow this tutorial to set up a Python environment

When i try to execute

python ~\Desktop\ez_setup.py 

I get

 Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure channel." At line:1 char:106 + [System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCac ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : WebException 

I tried to enable SSL and TLS based on this link and restart the server, but no luck

+5
source share
2 answers

You can use the -insecure flag as a workaround, although it does not fix the SSL error.

Source: Problems with Gitub Setuptools

+3
source

If you install pip via get-pip.py , do you need to install ez_setup first? It seems that this tutorial might be outdated.

+2
source

Source: https://habr.com/ru/post/1272951/


All Articles