问题
This issue is apparently well known and widely referenced. I'm running a python
code using a conda
installed environment on OSX. I'm getting
ImportError: dlopen(/Users/me/anaconda/lib/python2.7/site-packages/numpy/core/multiarray.so, 2): Library not loaded: @rpath/libgfortran.3.dylib
This happens regardless of whether I install gcc
in the environment. All the suggested work arounds I found aren't applicable to my case. It's been hours of googling.
Can someone please provide relevant suggestion to get over this hump?
回答1:
Your gfortran is too new for your version of Python. Your Python requires libgfortran version 3, but GCC 7 has libgfortran version 4. You will have to install GCC version 6 or older.
See a similar issue on Linux R v3.4.0-2 unable to find libgfortran.so.3 on Arch
来源:https://stackoverflow.com/questions/50321283/conda-gfortran-on-osx-failed-link-issue