Build ROOT6 with Python3

Dear ROOT experts,

could you please help me in installing ROOT6 with python3 in Xbuntu 16.04, because I built it with:

cmake -Dpython3=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.5 -DPYTHON_INCLUDE_DIR=/usr/include/python3.5/ -DPYTHON_LIBRARY=/usr/lib/python3.5/ …/root-6.12.04/

but in ipython did not recognize

In [1]: import ROOT

ImportError Traceback (most recent call last)
in ()
----> 1 import ROOT

ImportError: No module named ‘ROOT’

thank you in advance

You need to set $PYTHONPATH to $ROOTSYS/lib, to let Python know where you installed ROOT and be able to load the module. After that everything should work.

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