0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows10, miniconda, VScode環境で pipでSSLエラーが出た時の対処

Posted at

背景

新Win10 PCにMiniconda(ver 4.9.0), VScode(ver 1.50.1)を入れて
pythonのコーディング環境を構築しようとしたら、以下のエラーが出てpipが通らなかったため、四苦八苦して解決させたのでその備忘録。
*正しいやり方かどうかわかりません。

状態

VScodeでvenvを使って仮想環境構築後、pip install をしようとするとエラーで通らない。
image.png

解決

  1. OpenSSLインストール
    Win10にOpenSSLをインストール。図のWin32 OpenSSL v1.1.1h Light
    image.png

  2. OpenSSLのpathを通す
    image.png

  3. OpenSSLの中身を入れ替える
    インストール先のC:\Program Files (x86)\OpenSSL-Win32\binの中身を、
    minicondaインストール先フォルダのopensslに入れ替える

    例)
    C:\Users\[ユーザー名]\miniconda3\pkgs\openssl-1.1.1g-he774522_1\Library\binの中身を上記OpenSSLインストール先へコピー

  4. pipが通るか確認

書いてる途中、\miniconda3\pkgs\openssl-1.1.1g-he774522_1\Library\binを単にpath通したら解決するんじゃ・・・?と思ってしまった。

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?