Python 版本:2.7.13
操作系统:Windows Server 2012
我正在关注这个 tutorial搭建Python环境
当我尝试执行时
python ~\Desktop\ez_setup.py
我明白了
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
我尝试基于此 link 启用 SSL 和 TLS并重新启动服务器,但没有成功
最佳答案
作为解决方法,您可以使用 --insecure 标志,但它不能修复 SSL 错误。
关于安装 ez_setup.py 时出现 Python 错误 "could not create SSL/TLS secure channel",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46981300/