AWS pandas 安装出现错误:虚拟内存已耗尽:无法分配内存
AWS pandas installation giving ERROR: virtual memory exhausted: Cannot allocate memory
我正在尝试在 AWS EC2 实例上安装 pandas,t2.micro RAM 大小为 1GB,但它在中间抛出了一个错误
> from pandas/_libs/join.c:435:
> /usr/lib64/python2.7/dist-packages/numpy/core/include/numpy/npy_deprecated_api.h:11:2:
> warning: #warning "Using deprecated NumPy API, disable it by #defining
> NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
> #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
> ^
> virtual memory exhausted: Cannot allocate memory
> error: command 'gcc' failed with exit status 1
>
> ----------------------------------------
> Command "/usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-XJKxj6/pandas/setup.py';exec(compile(getattr(tokenize,
> 'open', open)(__file__).read().replace('rn', 'n'), __file__,
> 'exec'))" install --record /tmp/pip-QLWuWh-record/install-record.txt
> --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-XJKxj6/pandas
可能是什么问题?是t2.micro的问题吗?
熊猫安装需要多少内存?
问题出在实例大小微上。我将实例大小增加到很小,然后它对我有用。
相关文章:
- Win32编译器选项和内存分配
- 多个文件的内存分配错误"在抛出 'std :: bad_alloc' what (): std :: bad_alloc 的实例后终止调用" [C++]
- 当需要超过16GB的连续内存时,内存分配失败
- 尝试摆脱任何堆内存分配
- 以下代码执行哪种内存分配(动态或静态)?
- 开放 CV 中的动态内存分配,用于视频处理
- 为什么类和 main() 函数中也有动态内存分配
- 使用 NTAllocateVirtualMemory 和 GetProcAddress 的内存分配问题不起作用
- C++:矢量分配器行为、内存分配和智能指针
- 介于 [固定数组] 和 [带内存分配的指针] 之间的性能
- Linux C++ 中的页面对齐内存分配
- 整数内存分配/释放
- 将内存分配返回值强制转换为 TYPE 数组
- C++程序什么都不做,但瓦尔格林德显示内存分配
- 给定特定内存地址的数组的动态内存分配
- 如何完成内存分配
- 我刚刚了解了C++中的动态内存分配
- 在先前调用 string::find 后添加内存分配和内存集会导致它返回 npos.为什么?
- 对于堆上的页面对齐内存分配是否有任何优化或不同的 API?
- 无法删除布尔动态内存分配