首页 > 解决方案 > 尝试 ec2 pip 安装时出现内存错误

问题描述

我目前正在开发一个 t2.micro ec2 实例。到目前为止,我已经 pip 安装了很多没有问题的东西,但现在我遇到了一个错误

pip install autogluon

尝试这个时,我打了一个

MemoryError

我也尝试过

pip --no-cache-dir install autogluon

然后引发以下错误:

ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

我尝试增加 ec2 实例的大小,但仍然遇到相同的错误。我也尝试过像下面这样设置一个 tmpdir:

TMPDIR=/folder/address/here/ pip install --cache-dir=/folder/address/here/ --build /folder/address/here/ autogluon

但再次遇到同样的错误。是否还有其他尝试让我能够 pip 安装我需要的软件包?

标签: pythonamazon-ec2pipout-of-memory

解决方案


推荐阅读