【问题标题】:Facing this error while doing pip install in a python virtual env windows 10 [duplicate]在 python 虚拟环境 windows 10 中进行 pip 安装时遇到此错误 [重复]
【发布时间】:2021-01-09 07:02:21
【问题描述】:

这是我在 python 虚拟环境中执行 pip install flask 后遇到的错误

警告:pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模块不可用。 收集瓶 警告:在连接被 'SSLError("Can't connect to HTTPS URL because the SSL module is not available. “)”:/简单/烧瓶/ 警告:在连接被 'SSLError("Can't connect to HTTPS URL because the SSL module is not available. “)”:/简单/烧瓶/ 警告:在连接被 'SSLError("Can't connect to HTTPS URL because the SSL module is not available. “)”:/简单/烧瓶/ 警告:在连接被 'SSLError("Can't connect to HTTPS URL because the SSL module is not available. “)”:/简单/烧瓶/ 警告:在连接被 'SSLError("Can't connect to HTTPS URL because the SSL module is not available. “)”:/简单/烧瓶/ 无法获取 URL https://pypi.org/simple/flask/:确认 ssl 证书时出现问题:HTTPSConnectionPool(host='pypi.org', port=443):最大重试次数超出了 url:/simple/flask/(由 SSLError(“Can '不连接到 HTTPS URL,因为 SSL 模块不可用。")) - 跳过 错误:找不到满足烧瓶要求的版本(来自版本:无) 错误:没有为烧瓶找到匹配的分布

【问题讨论】:

  • 欢迎来到 Stack Overflow。请阅读如何问好questions。我们如何为您提供帮助?您是在寻求安装帮助还是在寻求调试问题?能说的具体点吗?

标签: python ssl pip


【解决方案1】:

您遇到的错误意味着您的 virtualenv 中缺少 SSL 库或者它已损坏。此问题已通过安装 OpenSSL for Windows 得到解决。安装指南是here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-06-03
    • 1970-01-01
    • 2016-10-19
    • 1970-01-01
    • 2016-06-20
    • 2019-12-21
    • 1970-01-01
    • 2021-10-21
    相关资源
    最近更新 更多