Still can't install scipy due to missing fortran compiler after brew install gcc on Mac OS X Still can't install scipy due to missing fortran compiler after brew install gcc on Mac OS X python python

Still can't install scipy due to missing fortran compiler after brew install gcc on Mac OS X


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.  InsecurePlatformWarningRequirement already satisfied (use --upgrade to upgrade): theano in /Users/me/.virtualenvs/mypy/lib/python2.7/site-packagesRequirement 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/sInstalling collected packages: scipySuccessfully installed scipy-0.15.1


The following worked for me:

sudo apt-get install gfortran

on my system:

Ubuntu 15.10 (Linux 4.2.0-19-generic #23-Ubuntu x86_64 x86_64 x86_64 GNU/Linux)


For macOS, installed Fortran and it worked.

$ brew install gfortran