问题描述

Windows 平台上,在执行完conda update -n base -c defaults conda命令后,执行conda install命令时,报错信息如下:

(paddlepaddle) C:\Users\ASUS>conda install paddlepaddle-gpu==2.4.1 cudatoolkit=11.2 -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/Paddle/ -c conda-forge
Collecting package metadata (current_repodata.json): failed

CondaSSLError: OpenSSL appears to be unavailable on this machine. OpenSSL is required to
download and install packages.

Exception: HTTPSConnectionPool(host='mirrors.tuna.tsinghua.edu.cn', port=443): Max retries exceeded with url: /anaconda/cloud/Paddle/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

问题解决

找到 Anaconda 的安装目录>Library>bin,如C:\ProgramData\Anaconda3\Library\bin,复制该文件夹下的两个文件

  1. libcrypto-1_1-x64.dll
  2. libssl-1_1-x64.dll

然后将这两个文件粘贴到 Anaconda 的安装目录>DLLs,如C:\ProgramData\Anaconda3\DLLs
然后重新执行 conda install 命令即可。

参考链接:https://gist.github.com/tabarkarajab/8fe8298f8f4ede04d04dcaa62f9e411b

Logo

鸿蒙生态一站式服务平台。

更多推荐