installing scipy on mac

I used pip which complained that “library dfftpack has Fortran sources but no Fortran compiler found”. An easy solution is that if you have Xcode installed and command line tool installed which comes with Xcode, chances are you already some fortran compiler somewhere on your disk. Mine is at /opt/local/bin/gfortran-mp-4.7. Then I did

sudo ln -s /opt/local/bin/gfortran-mp-4.7 /usr/bin/gfortran

after this ‘sudo pip install scipy’ will install.