scipy osx 10.9无法加载gfortran库

我曾尝试用pip和brew安装scipy,并且都安装了这个错误

ImportError: dlopen(/usr/local/lib/python2.7/site-packages/sklearn/linear_model/cd_fast.so, 2): Library not loaded: /usr/local/lib/gcc/x86_64-apple-darwin12.5.0/4.8.3/libgfortran.3.dylib
  Referenced from: /usr/local/lib/python2.7/site-packages/sklearn/linear_model/cd_fast.so
  Reason: image not found

寻找有问题的图书馆显示可用的不同archetecture版本:

administrators-iMac-3:sourcefind_python bill$ locate libgfortran.3.dylib
/Applications/MATLAB_R2013a.app/sys/os/maci64/libgfortran.3.dylib
/usr/local/Cellar/gcc/4.8.3_1/lib/gcc/x86_64-apple-darwin13.2.0/4.8.3/i386/libgfortran.3.dylib
/usr/local/Cellar/gcc/4.8.3_1/lib/gcc/x86_64-apple-darwin13.2.0/4.8.3/libgfortran.3.dylib

我曾尝试在/usr/local/lib/gcc/x86_64-apple-darwin12.5.0/4.8.3/libgfortran.3.dylib中放置符号链接以指向usr / local / Cellar / gcc / 4.8.3_1 / lib /gcc/x86_64-apple-darwin13.2.0/4.8.3/libgfortran.3.dylib但这给了我一个错误'错误的架构'

有没有人有任何建议让这个工作?


Scikit-learn正在寻找Fortran库的旧版本。 你应该重新安装scikit-learn。


你应该重新安装numpy和scipy。

链接地址: http://www.djcxy.com/p/75471.html

上一篇: scipy osx 10.9 can't load gfortran library

下一篇: Compiling CGAL programs on mac, installed using macports