由于在 Mac OS X 上 brew install gcc 后缺少 fortran 编译器,仍然无法安装 scipy
问题描述
我已阅读并遵循 this answer 来安装 scipy/numpy/theano.但是,在 brew install gcc 之后,它仍然因缺少 Fortran 编译器的相同错误而失败.虽然 HomeBrew 安装了 gcc-4.8,但它没有安装任何 gfortran 或 g95 命令.我认为 gfortran 可能只是 同义词 gcc,然后我创建一个符号链接
I have read and followed this answer to install scipy/numpy/theano. However, it still failed on the same error of missing Fortran compiler after brew install gcc. While HomeBrew installed the gcc-4.8, it didn't install any gfortran or g95 commands. I figure gfortran may be just a synonymy of gcc, then I create a symlink
然后它检测到 gfortran 命令但仍然抱怨没有 Fortran 编译器
Then it detects the gfortran command but still complaining no Fortran compiler
我还应该做什么?
推荐答案
通过升级 pip 修复,即使我刚刚在同一天重新安装了我的 pip/virtualenv.
Fixed by upgrading pip, even though I just installed my pip/virtualenv the first time anew on the same day.
这篇关于由于在 Mac OS X 上 brew install gcc 后缺少 fortran 编译器,仍然无法安装 scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!