conda gfortran on osx failed link issue

空扰寡人 提交于 2019-12-23 05:09:21

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!