Instalado com pip dava o problema:
$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import root_numpy
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/root_numpy/__init__.py", line 51, in
from ._tree import (
File "/Applications/root_v6.12.06/lib/ROOT.py", line 318, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/Library/Python/2.7/site-packages/root_numpy/_tree.py", line 6, in
from . import _librootnumpy
File "/Applications/root_v6.12.06/lib/ROOT.py", line 318, in _importhook
return _orig_ihook( name, *args, **kwds )
ImportError: dlopen(/Library/Python/2.7/site-packages/root_numpy/_librootnumpy.so, 2): Library not loaded: @rpath/libHist.so
Referenced from: /Library/Python/2.7/site-packages/root_numpy/_librootnumpy.so
Reason: image not found
Resolvido com:
$ sudo install_name_tool -add_rpath /Applications/root_v6.12.06/lib/ /Library/Python/2.7/site-packages/root_numpy/_librootnumpy.so