相关疑难解决方法(0)

由于在Mac OS X上brew install gcc之后缺少fortran编译器,仍然无法安装scipy

我已阅读并按照此答案安装scipy/numpy/theano.但是,在brew install gcc之后,它仍然失败了同样的错误,即缺少Fortran编译器.虽然HomeBrew安装了gcc-4.8,但它没有安装任何gfortran或g95命令.我认为gfortran可能只是gcc 的同义词,然后我创建了一个符号链接

$ cd /usr/local/bin
$ ln -s gcc-4.8 gfortran
$ pip install scipy
Run Code Online (Sandbox Code Playgroud)

然后它检测到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 …
Run Code Online (Sandbox Code Playgroud)

python macos homebrew fortran numpy

36
推荐指数
2
解决办法
3万
查看次数

标签 统计

fortran ×1

homebrew ×1

macos ×1

numpy ×1

python ×1