ROOT installation and PyROOT on Windows 10


I have tried reading previous posts, but I am having trouble with PyROOT on Windows 10. When running a python script importing ROOT (Python 3.9.5), it says No module named ‘ROOT’. I downloaded the binary of the latest root version. Do I need to download the root folder in a specific folder, or is “C:Users/Ross” ok?

I also tried looking at the root-config features, but got this error:

C:\Users\Ross\root\bin>root-config --features
‘root-config’ is not recognized as an internal or external command,
operable program or batch file.



Please read tips for efficient and successful posting and posting code

ROOT Version: 6.24.00
Platform: Windows 10
Compiler: Microsoft Visual Studio Community 2019

Call C:\Users\Ross\root\bin\thisroot.bat before Python:


Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT

And root-config.bat has been introduced on Windows after the 6.24.00 release

1 Like

Ok great thanks so much! I’ve been trying for a while now, should have just asked. I had to reinstall Python 3.8.4 (not the 64 bit one) instead of Python 3.9.5.


Python 3.8.4 (tags/v3.8.4:dfa645a, Jul 13 2020, 16:30:28) [MSC v.1926 32 bit (Intel)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT

1 Like