使用pip3安装scipy时出错

时间:2014-04-08 08:49:06

标签: python macos python-3.x scipy pip

我正在尝试使用pip3在OS X 10.8.5上安装scipy,如下所示:

pip3 install scipy

但我收到以下错误:

compile options: '-I/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include -c'

gfortran:f77: scipy/fftpack/src/dfftpack/dcosqb.f

dyld: Library not loaded: /usr/local/lib/libmpc.3.dylib

  Referenced from: /usr/local/Cellar/gfortran/4.8.2/gfortran/libexec/gcc/x86_64-apple-darwin12.5.0/4.8.2/f951

  Reason: image not found

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

sh: line 1: 15049 Abort trap: 6           /usr/local/bin/gfortran -Wall -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops -I/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include -c -c scipy/fftpack/src/dfftpack/dcosqb.f -o build/temp.macosx-10.8-x86_64-3.3/scipy/fftpack/src/dfftpack/dcosqb.o

dyld: Library not loaded: /usr/local/lib/libmpc.3.dylib

  Referenced from: /usr/local/Cellar/gfortran/4.8.2/gfortran/libexec/gcc/x86_64-apple-darwin12.5.0/4.8.2/f951

  Reason: image not found

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

I/usr/local/Cellar/python3/3.3.3/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/numpy/core/include -c -c scipy/fftpack/src/dfftpack/dcosqb.f -o build/temp.macosx-10.8-x86_64-3.3/scipy/fftpack/src/dfftpack/dcosqb.o" failed with exit status 134

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

卸载python3,pip和setuptools之后我重新安装了它们但仍然遇到了同样的错误。

所以我卸载了libmpc并使用自制程序重新安装它,并且工作正常。

brew uninstall libmpc --force
brew install libmpc