趣味で計算流砂水理

趣味で計算流砂水理 Computational Sediment Hydraulics for Fun Learning

数値計算とか河川工学とかプログラミングのことを書いています

MENU

conda install時にOpenSSLのエラーが出たときの解決方法(windows10環境)

スポンサーリンク

condaの環境を整理した後にconda installを実行した時に以下のOpenSSLに関するエラーが発生したため、その解決方法です。 情報があまりなかったので簡単にまとめておきます。

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='conda.anaconda.org', port=443): Max retries exceeded with url: /conda-forge/win-64/current_repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))

参照サイト

community.anaconda.cloud

github.com

参照サイトによると、OpenSSL関連のライブラリが上手く参照できていないことが原因のようです。 そのため、シンボリックリンクを使って以下のコマンドを実行することで解決できます。もちろんコピーしても大丈夫です。

mklink "C:\ProgramData\Anaconda3\DLLs\libcrypto-1_1-x64.dll" "C:\ProgramData\Anaconda3\Library\bin\libcrypto-1_1-x64.dll"
mklink "C:\ProgramData\Anaconda3\DLLs\libssl-1_1-x64.dll" "C:\ProgramData\Anaconda3\Library\bin\libssl-1_1-x64.dll"