Using PyROOT on Mac

Please provide the following information:

ROOT Version:ROOT 6.15/01
Platform, compiler: MacOS (10.13.4)

Hi, I am trying to use pyroot on my mac. But I am not able to import the root module. Can anyone help?
Here is the code and running script.Terminal Saved Output.txt (353 Bytes)


did you source the script to set up your environment? Does the prompt start (just execute root)?


It is only not working when I run a python file in the terminal. Everything else related to ROOT can work properly.Terminal Saved Output.txt (959 Bytes)


this looks like a misconfiguration on your side. Are you sure you are invoking the python against which ROOT has been built? Did you by any chance install multiple versions of Python after building/installing ROOT, for example with brew/fink or similar tools?


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.