1
0

ネットワーク環境が不安定でpip installが失敗するときの対策

Posted at

職場環境でpipによるインストールが頻繁に失敗するので試行錯誤した結果、下記でインストール成功したのでメモ。

pip install インストールしたいライブラリ名 --timeout 300 --retries 10

パラメータ

pip --help によると

--retries Maximum number of retries each connection should attempt (default 5 times).
--timeout Set the socket timeout (default 15 seconds).

1
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
1
0