6

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

Dogg1
  • 151
  • 1
  • 1
  • 13
Rhonda
  • 1,661
  • 5
  • 31
  • 65

2 Answers2

3

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

Source: Github Setuptools Issues

Brendan Samek
  • 266
  • 1
  • 6
2

If you're installing pip via get-pip.py, is it even necessary to install ez_setup first? It seems like that tutorial might be out of date.