ROOT cannot be imported. Is ROOT installed with PyROOT enabled?

Hey guys,

I am trying to install rootpy on windows using command prompt but running into this error:

H:>python -m pip install rootpy
Collecting rootpy
Using cached
Complete output from command python egg_info:
ROOT cannot be imported. Is ROOT installed with PyROOT enabled?


Command “python egg_info” failed with error code 1 in c:\users\bhesr928\appdata\local\temp\pip-install-d_mial\rootpy\

I have installed an instance of ROOT using the .exe file on the ROOT official page.

During installation, I have selected the option to add ROOT to Environmental variable PATH.

I still get the same error when I try installing rootpy from cmd.

I even went into the C:\root_v5.34.36\bin folder and ran thisroot.bat

I did check the environmental variables and added C:\root_v5.34.36\bin to ROOT and the same to PYTHONPATH as well, but the problem still persists.

I can confirm that ROOT is installed properly as when I type in root into cmd I get this:
Error in <TWinNTSystem::Unable to find’ for reading:>: C:\Program Files\PuTTY"*

  •                                     *
  •    W E L C O M E  to  R O O T       *
  •                                     *
  • Version 5.34/36 5 April 2016 *
  •                                     *
  • You are welcome to visit our Web site *
  •            *
  •                                     *

ROOT 5.34/36 (v5-34-36@v5-34-36, Apr 05 2016, 10:25:45 on win32)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]

Any help or advice would be highly appreciated.

Thanks in advance.

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

Dear @Srinidhi_Bheesette

Please note that rootpy is an external package to ROOT and thus we do not provide support for it.

On the other hand, you are running with ROOT 5, which is not supported anymore. Would it be possible for you to move to ROOT 6?


Hey Enric,

Thanks for your reply on the post.

I might have followed an old question about installing ROOT on windows and thus installed ROOT 5. I have upgraded to ROOT 6.

Do you know which is the best forum to seek answer to my issue?

Thanks in advance.


Hi Shri,

You can try contacting any of the rootpy developers:



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