在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

然后,它检测到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

我该怎么办?

泰迪熊

即使我是在同一天第一次重新安装pip / virtualenv,也可以通过升级pip进行修复。

(mypy)MAC0227: $ pip install --upgrade pip
...
(mypy)MAC0227: $ pip install theano
/Users/me/.virtualenvs/mypy/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Requirement already satisfied (use --upgrade to upgrade): theano in /Users/me/.virtualenvs/mypy/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6.2 in /Users/me/.virtualenvs/mypy/lib/python2.7/site-packages (from theano)
Collecting scipy>=0.11 (from theano)
/Users/me/.virtualenvs/mypy/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading scipy-0.15.1-cp27-none-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (19.8MB)
    100% |████████████████████████████████| 19.8MB 23kB/s
Installing collected packages: scipy
Successfully installed scipy-0.15.1

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在Mac OS X Mavericks上brew install zlib-devel

来自分类Dev

brew install gcc / Mac OS 10.9小牛

来自分类Dev

brew install zlib-devel on Mac OS X Mavericks

来自分类Dev

无法在Mac OS X上安装scipy

来自分类Dev

Brew在MAC OS X Mavericks上安装x86_64(64位)版本

来自分类Dev

无法在Mac OS X特立独行的Brew上安装imagemagick

来自分类Dev

如何在Mac OS X上的install4j安装程序的末尾运行Shell脚本

来自分类Dev

Error Install Pandas for Python on Mac OS X

来自分类Dev

在Mac OS X上,“ pod install”命令有什么作用?

来自分类Dev

libpipeline无法在Mac OS X上编译

来自分类Dev

libpipeline无法在Mac OS X上编译

来自分类Dev

g ++编译器是否与C ++的gcc编译器相同?(Mac OS X)

来自分类Dev

无法在Mac OS X中使用brew下载jmeter

来自分类Dev

无法在Mac OS X中使用brew下载jmeter

来自分类Dev

在Mac OS X上执行RAID 1

来自分类Dev

在无法启动Mac OS X的Mac上安装ubuntu 12.04

来自分类Dev

在无法启动Mac OS X的Mac上安装ubuntu 12.04

来自分类Dev

查找OS X上brew的安装位置

来自分类Dev

在Mac OS X Mavericks上安装Agda

来自分类Dev

在Mac OS X上安装OpenCV

来自分类Dev

在Mac OS X上安装tesseract / pytesser

来自分类Dev

在Mac OS X上安装OCaml

来自分类Dev

在Mac OS X上安装滑轨

来自分类Dev

在Mac OS X Sierra上安装Laravel

来自分类Dev

无法在Mac OS X上运行mongod

来自分类Dev

VirtualBox无法在Mac OS X上启动

来自分类Dev

无法在Mac OS X上浏览Internet

来自分类Dev

无法在Mac OS X上运行mongod

来自分类Dev

Mac OS X安装程序的Install4j抛出NullPointerException