How to enable PyROOT in windows 10?

Hi,
I want to enable PyROOT on windows 10 but can’t find full guide for it. I have currently Anaconda installed with python version 3.8.5.
Thank you.


Please read tips for efficient and successful posting and posting code

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


Do you want to build ROOT yourself or did you download a binary version? If you want to build yourself, you must use the -Dpyroot=ON -Dpyroot_legacy=OFF CMake configure flags. Otherwise, with ROOT v6.23.01, it should already be included.
And note you need 32 bit Python.

Thank you. I have downloaded binary version and was using 64 bit python which causes issue.

1 Like