【问题标题】:getting CondaHTTP error: ssl module not available when trying to update anaconda获取 CondaHTTP 错误:尝试更新 anaconda 时 ssl 模块不可用
【发布时间】:2019-03-03 15:29:55
【问题描述】:

每当我尝试更新 conda 时

我收到以下错误:

尝试检索此 URL 时发生 HTTP 错误。 HTTP 错误 通常是断断续续的,简单的重试将使您顺利上路。 SSLError(SSLError("无法连接到 HTTPS URL,因为 SSL 模块 不可用。",),)

我在 Windows 10 上的 Cygwin 中遇到此错误

【问题讨论】:

    标签: python anaconda


    【解决方案1】:

    我在 Windows 10 下也遇到过同样的问题,根据this answer 解决了: 安装 Win32OpenSSL binaries 有帮助。

    【讨论】:

      【解决方案2】:

      您没有指定您使用的操作系统。我在 Ubuntu(在 WSL 下)遇到了同样的问题,在检查了我的工作网络中的 anaconda 网站被列入白名单后,我通过将 openssl 从 1.1.0g 升级到 1.1.1b 来解决它。

      (geo) user@host:~$sudo apt-get upgrade openssl
      

      (...)

      (geo) user@host:~$ openssl version
      OpenSSL 1.1.1b  26 Feb 2019
      

      为了完整性:

      (geo) tams00@74PDLQ2:~$ conda info
      
           active environment : geo
          active env location : /home/tams00/anaconda3/envs/geo
                  shell level : 1
             user config file : /home/tams00/.condarc
       populated config files : /home/tams00/.condarc
                conda version : 4.6.12
          conda-build version : 3.17.6
               python version : 3.7.1.final.0
      

      (...)

      【讨论】:

        【解决方案3】:

        我在创建一个新的conda 环境时遇到了这个问题:

        conda create --name myenv
        

        当我添加一个通用包如numpy时它起作用了:

        conda create --name myenv numpy
        

        【讨论】:

          【解决方案4】:

          您可能需要在 httpd.conf 文件中启用(默认禁用)modules/mod_ssl.so。 此外还有一个包含 ssl 配置文件:

          # Secure (SSL/TLS) connections
          #Include conf/extra/httpd-ssl.conf
          

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2018-08-31
            • 2022-06-13
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            相关资源
            最近更新 更多