Importing ROOT in a python console

I have recently installed ROOT 6.12 in Ubuntu. I have Python 2.7. When I try to import ROOT I got that there isn’t module ROOT.

If I wrote root on console , interactive root works perfectly.

Searching solutions i heard things about libPyROOT.so and root.py.

What should i do? Im a bit confused.

PD: I have built ROOT in Downloads folder. I dont know if this can be the problem.

PD2: I found that i have the same problem that here:

Thank u.

Hi,

it looks like an issue with your environment. Did you source the YOUR_ROOT_INSTALLATION_DIR/bin/thisroot.sh? What’s inside your PYTHONPATH?
Cheers,
D

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