gpt4 book ai didi

python - AWS pandas 安装给出错误 : virtual memory exhausted: Cannot allocate memory

转载 作者:行者123 更新时间:2023-11-30 05:11:00 27 4
gpt4 key购买 nike

我正在尝试在 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('\r\n', '\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 的问题吗?

pandas安装需要多少内存?

最佳答案

问题出在微型实例上。我将实例大小增加到较小,然后它对我有用。

关于python - AWS pandas 安装给出错误 : virtual memory exhausted: Cannot allocate memory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45350651/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com