Iissues when i tried to run ClassificationKeras.py

Hi , i am using lxplus cern…in which root is already installed. i was trying to run ClassificationKeras.py in the TMVA tutorial. but while running it shows the following error,

Traceback (most recent call last):

  File "ClassificationKeras.py", line 5, in <module>
    from tensorflow.keras.models import Sequential
  File "/usr/lib64/python2.7/site-packages/ROOT/_facade.py", line 150, in _importhook
    return _orig_ihook(name, *args, **kwds)
ImportError: No module named tensorflow.keras.models

CAN ANYONE SOLVE THIS… I M NEW TO TMVA

Welcome to the ROOT forum.

I guess @moneta can help.

@moneta2 Hi, could you please suggest a way to resolve?

Thank you!

Hello,
Sorry for the late reply. You need to install tensorflow (version >=2) on the machine you are using. It is not installed in lxplus by default.

Lorenzo