2012-05-09 2 views
6

easy_install numpy을 사용하여 numpy을 설치할 때 다음 예외가 발생했습니다. 내가 pip 또는 easy_install을 사용하든 동일한 문제가 발생합니다. 무엇이 잘못되었는지 이해하는 것은 어렵습니다.우분투에서 가상 엔티티에 numpy를 설치 11.10

non-existing path in 'numpy/core': 'build/src.linux-x86_64-2.7/numpy/core/src/multiarray' 
non-existing path in 'numpy/core': 'build/src.linux-x86_64-2.7/numpy/core/src/umath' 
numpy/core/src/multiarray/scalartypes.c.src:2549:1: warning: ‘longlong_arrtype_hash’ defined but not used [-Wunused-function] 
numpy/core/src/multiarray/mapping.c:74:1: warning: ‘_array_ass_item’ defined but not used [-Wunused-function] 
build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h:226:1: warning: ‘_import_umath’ defined but not used [-Wunused-function] 
gcc: internal compiler error: Killed (program cc1) 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. 
numpy/core/src/multiarray/scalartypes.c.src:2549:1: warning: ‘longlong_arrtype_hash’ defined but not used [-Wunused-function] 
numpy/core/src/multiarray/mapping.c:74:1: warning: ‘_array_ass_item’ defined but not used [-Wunused-function] 
build/src.linux-x86_64-2.7/numpy/core/include/numpy/__ufunc_api.h:226:1: warning: ‘_import_umath’ defined but not used [-Wunused-function] 
gcc: internal compiler error: Killed (program cc1) 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. 
error: Setup script exited with error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -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/include -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/multiarray -Ibuild/src.linux-x86_64-2.7/numpy/core/src/umath -c numpy/core/src/multiarray/multiarraymodule_onefile.c -o build/temp.linux-x86_64-2.7/numpy/core/src/multiarray/multiarraymodule_onefile.o" failed with exit status 4 
/tmp/easy_install-l43x51/numpy-1.6.1/numpy/distutils/misc_util.py:252: RuntimeWarning: Parent module 'numpy.distutils' not found while handling absolute import 
Error in atexit._run_exitfuncs: 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs 
    func(*targs, **kargs) 
    File "/tmp/easy_install-l43x51/numpy-1.6.1/numpy/distutils/misc_util.py", line 252, in clean_up_temporary_directory 
ImportError: No module named numpy.distutils 
Error in sys.exitfunc: 
Traceback (most recent call last): 
    File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs 
    func(*targs, **kargs) 
    File "/tmp/easy_install-l43x51/numpy-1.6.1/numpy/distutils/misc_util.py", line 252, in clean_up_temporary_directory 
ImportError: No module named numpy.distutils 
+1

나는 gcc : internal compiler error : Killed (program cc1)가 핵심이라고 생각한다. 버그 보고서를 제출해야하는 것 같습니다. – talonmies

+0

그냥'apt-get upgrade gcc'를 실행하면 모든 것이 잘 작동합니다. 감사. – hllau

+0

@hilau 답변에 추가 할 수 있습니까? – pcx

답변

8

아마도 GCC가 업데이트되지 않았습니다. 방금 apt-get upgrade gccnumpy을 성공적으로 컴파일했습니다.

+1

당신은 어떤 버전의 gcc를 사용 했습니까? gcc가 4.6.3이고 오류가 계속 표시됩니다. – davidgoli

2

easy_install 대신이 명령을 사용해야합니다. 나를 위해 일했다

sudo apt-get install python-numpy python-scipy 
+1

감사. 보통'virtualenv' 안에 패키지를 설치하기 때문에 여러 프로젝트를 개발할 때 전역 네임 스페이스를 오염시키지 않습니다. 'easy_install'을 선호하십시오. – hllau

+0

@hllau 당신이 유용하다고 생각하면 내 대답을 upvote 할 수 있습니다 :) – gauravmunjal

+12

'apt-get install'은 virtualenv 내에 패키지를 설치하지 않습니다. 나는 지구 환경을 오염시키고 싶지 않다. – hllau