ROOT and Python installation problem

Hi ROOT community,

I am facing an issue with Python, which is associated with ROOT. I have installed Python 3.8.10 and ROOT version 6.32.00 on my Windows 8 system (64x bit for both and I have Visual Studio 2022 with Desktop development with C++). On the terminal with C++, ROOT seems to be working fine.

When I try doing ‘import ROOT’ on my Python I get the following message:

C:\root_v6.32.00\bin>python
Python 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

import ROOT
Traceback (most recent call last):
File “”, line 1, in
File “C:\root_v6.32.00\bin\ROOT_init_.py”, line 25, in
import cppyy
File “C:\root_v6.32.00\bin\cppyy_init_.py”, line 81, in
from ._cpython_cppyy import *
File “C:\root_v6.32.00\bin\cppyy_cpython_cppyy.py”, line 22, in
import libcppyy as _backend
ImportError: DLL load failed while importing libcppyy: Impossível localizar o módulo especificado. (Impossible to locate the specified module)

I read about someone in the community with a similar issue who suggested he run thisroot.bat. I did that, but I still got this message.

Could anyone help me out with solving this?

Thank you in advance!

Greetings,
Beatriz

Welcome to the ROOT Forum!
ROOT v6.32.00 has been built with Python 3.11:

C:\Users\bellenot\Downloads>root-config --version
 6.32.00

C:\Users\bellenot\Downloads>root-config --python3-version
 3.11.2

So you should install Python 3.11 on your system

P.S. and you have to execute C:\root_v6.32.00\bin\thisroot.bat before starting Python

Thank you! It worked :slightly_smiling_face:

1 Like

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