gpt4 book ai didi

gcc - 在AWS中安装Pandas时出错

转载 作者:行者123 更新时间:2023-12-02 13:15:45 26 4
gpt4 key购买 nike

我按照以下步骤在AWS微实例中安装pandas(他的平台是Amazon Linux)。我通过 SSH 连接到 AWS 实例并运行以下命令来安装依赖项。

$sudo yum install gcc
$sudo yum install gcc-c++
$ sudo pip install numpy
$ sudo yum install python-devel
$ sudo yum install pytz

我收到如下错误

    pandas/src/klib/khash_python.h:49:1: note: in expansion of macro ‘KHASH_MAP_INIT_STR’

KHASH_MAP_INIT_STR(strbox, kh_pyobject_t)

^

{standard input}: Assembler messages:

{standard input}:107066: Warning: end of file not at end of a line; newline inserted

{standard input}:107394: Error: number of operands mismatch for `mov'

{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive

gcc: internal compiler error: Killed (program cc1)

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://bugzilla.redhat.com/bugzilla> for instructions.

error: command 'gcc' failed with exit status 4

----------------------------------------
Command "/usr/bin/python2.7 -c "import setuptools, tokenize;__file__='/tmp/pip-build-YJi1l7/pandas/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-9dXSKp-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-YJi1l7/pandas

最佳答案

您很可能内存不足。尝试制作一个交换文件 - 它对我有用:

sudo dd if=/dev/zero of=/swapfile bs=1024 count=524288
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo pip install pandas

关于gcc - 在AWS中安装Pandas时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30474487/

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