How to set configuration for PyROOT

Dear all,
I have installed ROOT and python in my ubuntu-16. But I can’t import ROOT in python.
The prompt feedback: ModuleNotFoundError: No module named ‘ROOT’.
My ROOT path is: /home/renqi/Documents/root6/bin/root
My python path is : /home/renqi/anaconda3/bin/python
How to set the configuration to make root can work in python.
thank you in advance.

Can you try to source /home/renqi/Documents/root6/bin/thisroot.sh and try again?

Other question to check if ROOT was install using the python from anaconda. First setup anaconda python, then install ROOT. Make sure it picks up the python from anaconda.

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