我已经阅读并按照这个答案的指示安装了scipy/numpy/theano。然而,在brew install gcc之后,它仍然因为缺少Fortran编译器而失败。尽管HomeBrew安装了gcc-4.8,但它没有安装任何gfortran或g95命令。我认为gfortran可能只是gcc的同义词,然后我创建了一个符号链接。
然后它检测到了gfortran命令,但仍然抱怨没有Fortran编译器。
$ cd /usr/local/bin
$ ln -s gcc-4.8 gfortran
$ pip install scipy
然后它检测到了gfortran命令,但仍然抱怨没有Fortran编译器。
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize NAGFCompiler
Could not locate executable f95
customize AbsoftFCompiler
Could not locate executable f90
Could not locate executable f77
customize IBMFCompiler
Could not locate executable xlf90
Could not locate executable xlf
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize GnuFCompiler
Could not locate executable g77
customize G95FCompiler
Could not locate executable g95
customize PGroupFCompiler
Could not locate executable pgfortran
don't know how to compile Fortran code on platform 'posix'
building 'dfftpack' library
error: library dfftpack has Fortran sources but no Fortran compiler found
我还应该做什么?
scipy
吗?还是使用随anaconda
一起提供的预编译版本是一个选项? - celbrew install gcc
命令?参考链接:https://dev59.com/HF8d5IYBdhLWcg3wXBJe。 - Vladimir F Героям слава