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?

pipのCERTIFICATE_VERIFY_FAILEDを回避する

Last updated at Posted at 2024-01-22

信頼済みホストを追加して、pipコマンドを実行する

pip install hoge-library --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org 

CAの証明書を指定する場合は、Windowsの設定から環境変数の設定で、下記を指定する。

PIP_CERT=C:\path\to\ca.pem

ちなみに、requestsライブラリは

REQUESTS_CA_BUNDLE=C:\path\to\ca.pem

でOK。

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?