尝试安装时出现 Fortran 错误 scipy

Fortran error when trying to install scipy

我正在尝试使用 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

什么给了?

卸载(使用 --force)并重新安装依赖项解决了这个问题。 (gmp、mpfr、libmpc、isl、cloog)