代码之家  ›  专栏  ›  技术社区  ›  guagay_wk

无法在Windows上将Conda与Anaconda 2018.2一起使用

  •  0
  • guagay_wk  · 技术社区  · 7 年前

    conda update conda ,我得到了以下错误;

    Collecting package metadata: failed
    
    CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/repodata.json.bz2>
    Elapsed: -
    
    An HTTP error occurred when trying to retrieve this URL.
    HTTP errors are often intermittent, and a simple retry will get you on your way.
    
    If your current network has https://www.anaconda.com blocked, please file
    a support request with your network engineering team.
    
    SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/main/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))
    
    2 回复  |  直到 7 年前
        1
  •  11
  •   ColdCold    7 年前

    我的工作就是将这些文件从Anaconda3/Library/bin复制到Anaconda3/dll:

    libcrypto-1_1-x64.dll

        2
  •  5
  •   user1538348    7 年前

    使用Anaconda Prompt作为管理员为我工作。我还没有尝试第二种解决方案(OpenSSL)

        3
  •  1
  •   guagay_wk    7 年前

    我会回答我自己的问题。我发现了两种解决方案。

    第一种解决方案是使用Anaconda提示符

    https://slproweb.com/products/Win32OpenSSL.html

    这个二进制文件对我有用。 https://slproweb.com/download/Win64OpenSSL-1_1_1a.exe 我正在运行64位Windows 10。

    以上解决方案已在我的电脑上进行了测试。

        4
  •  1
  •   floydn    7 年前

    ssl_verify:  false
    

    保存文件并重试conda命令。

    如果这不起作用,并且您的计算机位于防火墙后面。确保代理服务器条目也在.condarc配置文件中定义。例子:

    proxy_servers:
       http: http://www.proxy.com:8080
       https: https://www.proxy.com:8080
    
        5
  •  0
  •   Nairen Zheng    5 年前

    添加 <anaconda_or_miniconda_installation_directory>\Library\bin PATH 环境变量足以解决这个问题。