Root in python3

Dear experts,
I when I do (1) I have the error message (2). When I do it with python2, it works fine. I’m doing that on cern (lxplus machine). Is it normal?
Regards

(1)

python3
>>>import ROOT

(2)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'ROOT

It is normal if you use the default ROOT5 installation on lxplus.
It will work if you leverage LCG releases, for example sourcing LCG93:

source /cvmfs/sft.cern.ch/lcg/views/LCG_93python3/x86_64-slc6-gcc7-opt/setup.sh

The description of the ecosystem these releases provide is described here.

Cheers,
D

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