Setting up pyroot

ROOT Version: v6-28-04
Platform: MacOs

I installed root using homebrew. When I do which ROOT I get this: /opt/homebrew/bin/ROOT

I installed anaconda which installed python and other libraries. When I do which python I get /Users/irisponce/opt/anaconda3/bin/python. I have python 3.9.18.

I can use these two separately but I can’t use pyroot. When I try to upload ROOT on my python script I keep getting this error: Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'ROOT'

What can I do to fix this? Thanks in advance for the help.

I’m not an expert on MacOS, anaconda and homebrew, but can’t you take all (including ROOT) from anaconda?
See for example: ROOT import in python on macOS

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