When you run "import xgboost", you might encounter the following error:
OSError: dlopen(/Users/izeye/anaconda/lib/python3.5/site-packages/xgboost/./lib/libxgboost.so, 6): Library not loaded: /usr/local/opt/gcc/lib/gcc/5/libgomp.1.dylib
Referenced from: /Users/izeye/anaconda/lib/python3.5/site-packages/xgboost/./lib/libxgboost.so
Reason: image not found
Adding a symbolic link as follows works for me:
ln -s /usr/local/opt/gcc\@5 /usr/local/opt/gcc
No comments:
Post a Comment