pineapple
pineapple copied to clipboard
ImportError libgfortran.3.dylib on scipy.stats
Upon from scipy import stats
I get the following error:
ImportError: dlopen(/Applications/Pineapple-Pro.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/special/_ufuncs.cpython-35m-darwin.so, 2): Library not loaded: /usr/local/lib/gcc/5/libgfortran.3.dylib Referenced from: /Applications/Pineapple-Pro.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/special/_ufuncs.cpython-35m-darwin.so Reason: image not found
Running Pineapple-Pro-0.8 on OSX 10.10.5 (Yosemite). (The problem was also in version 0.7.4)
I ran into this while Googling for the same issue. It's not ideal (would be nice to have a CI pipeline), but, as I later found from data/examples/python2.7/Packages.ipynb, adding
import pineapple
%pip install --upgrade scipy
to my notebook resolved this for me.