尝试安装scipy时出现Fortran错误

时间:2015-07-10 16:08:48

标签: python scipy fortran

我正在尝试使用Pip安装scipy,使用:

sudo pip install scipy

但是我抛出了这个错误:

dyld: Library not loaded: /usr/local/lib/libisl.13.dylib

  Referenced from: /usr/local/Cellar/gcc/5.1.0/libexec/gcc/x86_64-apple-darwin14.3.0/5.1.0/f951

  Reason: image not found

gfortran: internal compiler error: Trace/BPT trap: 5 (program f951)

error: Command "/usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops -I/usr/local/lib/python2.7/site-packages/numpy/core/include -c -c /private/tmp/pip-build-WaJ_GP/scipy/scipy/fftpack/src/dfftpack/dcosqb.f -o build/temp.macosx-10.5-x86_64-2.7/private/tmp/pip-build-WaJ_GP/scipy/scipy/fftpack/src/dfftpack/dcosqb.o" failed with exit status 4

当我跑步时:

brew install gcc

我明白了:

Warning: gcc-5.1.0 already installed

是什么给出了?

1 个答案:

答案 0 :(得分:1)

卸载(使用--force)并重新安装依赖项修复了该问题。 (gmp,mpfr,libmpc,isl,cloog)