Import ROOT does not work

I am trying to use python with root. When I try to run import ROOT, it gives me this error:

ModuleNotFoundError: No module named 'ROOT'

I have Root 6.26/10 and I am using Windows 10. How can I fix this error?

It depends on how you installed ROOT. If it was with Visual Studio, try this

or search the forum, e.g.
https://root-forum.cern.ch/search?q=visual%20studio%20pyroot

I built root from source, and then accidentally installed it a second time using the exe installer. What do I do in this case?

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