Quantcast
Viewing all articles
Browse latest Browse all 5995

Spyder Python package not found for pyROOT

I am trying to use pyROOT (Python version of CERN ROOT) using Spyder on my Ubuntu Linux machine. I have found the pyROOT (or so I think) directory to add to Spyder using the Tools, PYTHONPATH manager by entering the following command into the pyROOT dedicated terminal such that:

>>> import pathlib, ROOT; pathlib.Path(ROOT.__file__).resolve().parentPosixPath('/snap/root-framework/931/usr/local/lib/ROOT')

Still, after adding the paths to the PYTHONPATH manager

/snap/root-framework/931/usr/local/lib/ROOT/_pythonization/snap/root-framework/931/usr/local/lib/ROOT

I still get the error ModuleNotFoundError: No module named 'ROOT'. How could I fix this issue?


Viewing all articles
Browse latest Browse all 5995

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>