17
13

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 5 years have passed since last update.

pip install時にMemory Errorが出た時の対処法

Posted at

背景

AWSでpip install -r requirments.txtしている時に、
メモリが足りないためにMemory Errorが出たことがあった。

対処法

簡潔だが、以下のようにオプションを付すれば問題ない。

pip install -r requirments.txt --no-cache-dir

単体のpackageをインストールする時も同様のオプションを加えればいい。

これによってキャッシュが無効化されるのでメモリが少なくてもインストールできるとか。

参考

Memory Error on pip install (SOLVED)

17
13
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
17
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?