安装 ez_setup.py 时出现 Python 错误 "could not create SSL/TLS secure channel"

标签 python python-2.7 ssl

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 错误。

来源:Github Setuptools Issues

关于安装 ez_setup.py 时出现 Python 错误 "could not create SSL/TLS secure channel",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46981300/

相关文章:

android - OkHttp 信任证书

security - 从一个 HTTPS 站点向另一个 HTTPS 站点提交表单是否安全?

python - 将 "pointers"保留到列表中的对象的最佳方法是什么?

Python 制表

python - 如何使用python正则表达式计算文本中特殊字符后面的单词的出现次数

css - 数据抓取: How to select width from a style tag by using Scrapy CSS?

python-2.7 - Selenium Webdriver 与 Python - driver.title 参数

php - Laravel 框架 : How to make Compatible to TLS 1. 2

python - 如何在 PySpark 中使用 UnaryTransformer?

python - 将 Tensor 作为输入传递给 Keras api 功能模型