Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Error When Installing ez_setup.py "could not create SSL/TLS secure channel"

Python version: 2.7.13

OS: Windows Server 2012

I'm following this tutorial to set up Python environment

When I attempt 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 enabling SSL and TLS based on this link and restarting the Server, but no luck

like image 957
Rhonda Avatar asked Oct 27 '17 18:10

Rhonda


1 Answers

As a workaround you can use the --insecure flag, although it doesn't fix the SSL error.

Source: Github Setuptools Issues

like image 174
Brendan Samek Avatar answered Oct 02 '22 00:10

Brendan Samek