<small id='4rgDa'></small><noframes id='4rgDa'>

      <i id='4rgDa'><tr id='4rgDa'><dt id='4rgDa'><q id='4rgDa'><span id='4rgDa'><b id='4rgDa'><form id='4rgDa'><ins id='4rgDa'></ins><ul id='4rgDa'></ul><sub id='4rgDa'></sub></form><legend id='4rgDa'></legend><bdo id='4rgDa'><pre id='4rgDa'><center id='4rgDa'></center></pre></bdo></b><th id='4rgDa'></th></span></q></dt></tr></i><div id='4rgDa'><tfoot id='4rgDa'></tfoot><dl id='4rgDa'><fieldset id='4rgDa'></fieldset></dl></div>
      <tfoot id='4rgDa'></tfoot>

      • <bdo id='4rgDa'></bdo><ul id='4rgDa'></ul>

    1. <legend id='4rgDa'><style id='4rgDa'><dir id='4rgDa'><q id='4rgDa'></q></dir></style></legend>

      由于在 Mac OS X 上 brew install gcc 后缺少 fortran 编译

      时间:2023-09-12
    2. <tfoot id='hV3cW'></tfoot><legend id='hV3cW'><style id='hV3cW'><dir id='hV3cW'><q id='hV3cW'></q></dir></style></legend>
          <tbody id='hV3cW'></tbody>
        <i id='hV3cW'><tr id='hV3cW'><dt id='hV3cW'><q id='hV3cW'><span id='hV3cW'><b id='hV3cW'><form id='hV3cW'><ins id='hV3cW'></ins><ul id='hV3cW'></ul><sub id='hV3cW'></sub></form><legend id='hV3cW'></legend><bdo id='hV3cW'><pre id='hV3cW'><center id='hV3cW'></center></pre></bdo></b><th id='hV3cW'></th></span></q></dt></tr></i><div id='hV3cW'><tfoot id='hV3cW'></tfoot><dl id='hV3cW'><fieldset id='hV3cW'></fieldset></dl></div>

              <bdo id='hV3cW'></bdo><ul id='hV3cW'></ul>
            • <small id='hV3cW'></small><noframes id='hV3cW'>

                本文介绍了由于在 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

                $ cd /usr/local/bin
                $ ln -s gcc-4.8 gfortran
                $ pip install scipy
                

                然后它检测到 gfortran 命令但仍然抱怨没有 Fortran 编译器

                Then it detects the gfortran command but still complaining no Fortran compiler

                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 修复,即使我刚刚在同一天重新安装了我的 pip/virtualenv.

                Fixed by upgrading pip, even though I just installed my pip/virtualenv the first time anew on the same day.

                (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
                

                这篇关于由于在 Mac OS X 上 brew install gcc 后缺少 fortran 编译器,仍然无法安装 scipy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:zgeev() LAPACK 的结果不正确/不一致 下一篇:是否可以使用 MPI 将数据从 Fortran 程序发送到 P

                相关文章

                最新文章

                  <bdo id='pHuUO'></bdo><ul id='pHuUO'></ul>

                  <i id='pHuUO'><tr id='pHuUO'><dt id='pHuUO'><q id='pHuUO'><span id='pHuUO'><b id='pHuUO'><form id='pHuUO'><ins id='pHuUO'></ins><ul id='pHuUO'></ul><sub id='pHuUO'></sub></form><legend id='pHuUO'></legend><bdo id='pHuUO'><pre id='pHuUO'><center id='pHuUO'></center></pre></bdo></b><th id='pHuUO'></th></span></q></dt></tr></i><div id='pHuUO'><tfoot id='pHuUO'></tfoot><dl id='pHuUO'><fieldset id='pHuUO'></fieldset></dl></div>

                  1. <tfoot id='pHuUO'></tfoot>
                  2. <small id='pHuUO'></small><noframes id='pHuUO'>

                    <legend id='pHuUO'><style id='pHuUO'><dir id='pHuUO'><q id='pHuUO'></q></dir></style></legend>