安装ez_setup.py时出现Python错误"无法创建SSL/TLS安全通道"

Rho*_*nda 6 python ssl python-2.7

Python版本: 2.7.13

操作系统: Windows Server 2012

我正在按照本教程设置Python环境

当我尝试执行时

python ~\Desktop\ez_setup.py
Run Code Online (Sandbox Code Playgroud)

我明白了

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
Run Code Online (Sandbox Code Playgroud)

我尝试根据此链接启用S​​SL和TLS 并重新启动服务器,但没有运气

Bre*_*mek 3

作为解决方法,您可以使用 --insecure 标志,尽管它不能修复 SSL 错误。

来源:Github 设置工具问题