Skip to content

pip3 install pandas--error: command 'gcc' failed with exit status 1 #21884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Justin-E-Taylor opened this issue Jul 13, 2018 · 1 comment
Closed
Labels
Build Library building on various platforms

Comments

@Justin-E-Taylor
Copy link

I’m getting an error trying to install pandas via:
-bash-4.3$ pip3 install pandas

I had issues installing numpy previously, and the numpy folks had me set a flag to get around that. I don’t know if something similar would be required here. numpy/numpy#11317

The entire stack trace is 15K lines. I can attach the whole thing if it will help. I'm including the last bit below.

Running Python 3.6.6-1 on IBMi OS.

Here’s what I currently have installed:

-bash-4.3$ pip3 list installed
Cython (0.28.3)
decorator (4.3.0)
freetype-py (1.2.1)
ibm-db (2.0.5.7)
ipython-genutils (0.2.0)
itoolkit (1.4.0)
jedi (0.12.1)
numpy (1.14.2)
parso (0.3.0)
pexpect (4.6.0)
pickleshare (0.7.4)
pip (10.0.1)
pkg-config (0.0.1)
prompt-toolkit (1.0.15)
ptyprocess (0.6.0)
Pygments (2.2.0)
pypng (0.0.18)
python-dateutil (2.7.3)
pytz (2018.5)
scikit-learn (0.19.1)
scipy (1.0.1)
setuptools (39.2.0)
simplegeneric (0.8.1)
six (1.11.0)
traitlets (4.3.2)
wcwidth (0.1.7)
wheel (0.31.1)
-bash-4.3$

Here's the last lines of the stacktrace:

             if (!all && self->lines - start_lines >= nrows) break;
                                                   ^~
    pandas/_libs/src/parser/tokenizer.c: In function 'xstrtod':
    pandas/_libs/src/parser/tokenizer.c:1593:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             return HUGE_VAL;
             ^~~~~~
    pandas/_libs/src/parser/tokenizer.c:1611:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         if (number == HUGE_VAL) {
         ^~
    pandas/_libs/src/parser/tokenizer.c: In function 'precise_xstrtod':
    pandas/_libs/src/parser/tokenizer.c:1756:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             return HUGE_VAL;
             ^~~~~~
    pandas/_libs/src/parser/tokenizer.c:1768:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
         if (number == HUGE_VAL || number == -HUGE_VAL) errno = ERANGE;
         ^~
    pandas/_libs/src/parser/tokenizer.c:1768:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/QOpenSys/pkgs/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1_578qpx/pandas/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-eakfv31p-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-1_578qpx/pandas/

TIA

@WillAyd
Copy link
Member

WillAyd commented Jul 13, 2018

xref #14373 unfortunately we don't support AIX. Would accept PRs if you have any to offer but otherwise it's not something we have built in support for

@WillAyd WillAyd closed this as completed Jul 13, 2018
@WillAyd WillAyd added the Build Library building on various platforms label Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

No branches or pull requests

2 participants