title: Cannot import scipy.optimize due to absent dylib
body: <p>Could you please help me? 2 weeks ago I did brew upgrade and that somehow broke some dependencies in my Python project (I think that was the cause as it was compiling before) and I cannot seem to import scipy any more. The error message I am struggling with is the following:</p>
  
  <pre><code>ImportError: dlopen(/Users/albydeca/indProjSource/venv/lib/python2.7/site-packages/scipy/optimize/minpack2.so, 2): 
  Library not loaded: /usr/local/lib/gcc/x86_64-apple-darwin14.0.0/4.9.2/libgfortran.3.dylib 
  Referenced from:/Users/albydeca/indProjSource/venv/lib/python2.7/site-packages/scipy/optimize/minpack2.so
  Reason: image not found
  </code></pre>
  
  <p>Triggered from :</p>
  
  <pre><code>File "/Users/albydeca/indProjSource/venv/lib/python2.7/site-   packages/scipy/optimize/linesearch.py", line 18, in &lt;module&gt;
  from scipy.optimize import minpack2
  </code></pre>
  
  <p>This is due to the fact that my path is as follows:</p>
  
  <pre><code>/usr/local/lib/gcc/x86_64-apple-darwin13.1.0/4.7.3 
  </code></pre>
  
  <p>and fortran.3.dylib is not there</p>
  
  <p>I have tried searching how I can get that folder but brew installing gcc49 does not do the job. My gcc choices are either 5 or x86_64-apple-darwin13.1.0
  Have you encountered this or similar messages before? Do you know how I can fix this?</p>
  
  <p>Thanks in advance</p>