python - 尝试 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 安装我需要的软件包?
解决方案
推荐阅读
- python - 如何将 Pandas Groupby 结果转换为 Dataframe
- javascript - 我无法设置字段值 (NetSuite)
- javascript - 如何在 React 中同步组件共享状态挂钩
- php - 000webhost中没有特殊字符的数据库密码问题
- python - 如何使用python google colab将带有边界框的图像存储在文件夹中?
- python - 使用 scipy.integrate odeint 函数时如何修复值错误?
- python - 无法存储 Selenium Web 驱动程序对象以通过 Django 视图恢复它
- javascript - 基于多个条件从复杂数组结构中删除数据
- python - 使用正则表达式 python 提取字符串
- javascript - Promise.all 中的多个文件读取不起作用