conda仮想環境上でpytorchをインストールする
anacondaのver: conda 22.9.0
windows10Pro上で動作
conda prompt上から
"conda create --name AE_pytorch"
で今回使用する仮想環境を作成。この際pythonを入れ忘れたので本当に何も入ってない環境。
↓
試しに
"conda search python"
を実行。しかしここで
"Loading channels: failed
CondaSSLError: Encountered an SSL error. Most likely a certificate verification issue.
Exception: HTTPSConnectionPool(host='repo.anaconda.com', port=443): Max retries exceeded with url: /pkgs/main/win-64/repodata.json (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))"
というエラーメッセージが出て失敗。この原因について少し考えることにする。
↓
Conda update fails with SSL error CERTIFICATE_VERIFY_FAILED - Stack Overflow
上記のサイトを参考にする。
↓
一行目のproxy serverを知らなかったので
What is a Proxy Server and How Does it Work?
このサイトの前半で基礎知識を身に着けた。要はネット上の仲介作業をしてくれる便利なサーバーのことだ。
↓
Anaconda3のプロキシサーバー設定方法:Windows10 + Powershell - Qiita
これを参考にpython上でプロキシサーバーを調べてみた。
結果:何も設定されてなかった。
↓
ここで新たに問題を解決できそうな投稿を発見
" ""
go to location where you've install anaconda anaconda3>Library>bin. search and copy following dll files
libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
and paste to anaconda3>DLLs.
then restart your pc.
"""
↓
it worked !!!!!!!!!
I'm really aprreciated for this post
↓
ちなみにdllファイルとは
↓
python, pytorchをcondaの仮想環境にインストール