Hi,
I am using a Mac 10.13.4
I have a file .ROOT which is export from Geant4.
I have installed root by cmake and python, however, I can not import ROOT from python
In [1]: import ROOT
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-b332e25ada1f> in <module>()
----> 1 import ROOT
ImportError: No module named ROOT
Could anybody please help me?
Thank you in advance.
ROOT Version (e.g. 6.13/03): Built for macosx64
python 2.7.10
Thank you very much to figure out the problem Amadio,
I am a newbie in bash_profile ( I am using Mac). Could you please help me to link them together.
I have that file here: /Users/hoang/root/build/lib/libPyROOT.so
I have installed my python in: /Users/hoang/Library/Python/2.7/lib/python/site-packages
The place for ROOT should probably come last in your list, otherwise ROOT may try to import modules that will not be found. Please post the errors you get too, otherwise it’s hard to guess what’s happening. Thank you.
It works now with the python inside a root TPython::Prompt().
In Ipython or python independently it has error when I try to import ROOT( import cppyy).
Anyway thank you very much, I can work with ROOT file now and I would like to close this topic to move to another topic.