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 Home
For macOS, installed Fortran and it worked.
$ brew install gfortran