python安裝 numpy 及遇到的問題

一、預先安裝了 python 2.7.3python

二、下載模塊包:https://pypi.python.org/pypi/ 查找 numpylinux

三、../python-2.7.3/bin/python setup.py build 或 install  時,有以下錯誤,經查是 gcc 版本過低,gcc --version 或 gcc -v 查看app

gcc version 3.4.5 20051201 (Red Hat 3.4.5-2) 編譯失敗python2.7

gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) 正確編譯ide

numpy/core/src/multiarray/einsum.c.src:852: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc3Coi5P.out file, please attach this to your bugreport.
numpy/core/src/multiarray/einsum.c.src: In function `float_sum_of_products_contig_outstride0_one':
numpy/core/src/multiarray/einsum.c.src:852: error: unrecognizable insn:
(insn:HI 440 228 481 14 /usr/lib/gcc/x86_64-redhat-linux/3.4.5/include/xmmintrin.h:915 (set (reg:SF 148)
        (vec_select:SF (reg/v:V4SF 67 [ accum_sse ])
            (parallel [
                    (const_int 0 [0x0])
                ]))) -1 (insn_list 213 (nil))
    (nil))
numpy/core/src/multiarray/einsum.c.src:852: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cc3Coi5P.out file, please attach this to your bugreport.
error: Command "gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/home/map/blade_deploy/base/python/tmp/python-2.7.3/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -c build/src.linux-x86_64-2.7/numpy/core/src/multiarray/einsum.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/multiarray/einsum.o" failed with exit status 1ui

相關文章
相關標籤/搜索