No module found, import ROOT error

Hello my friends ,
I need run a macro.py in lxplus, but this macro have pandas, h5py and tensorflow and I can’t run on lxplus, so Imade the virtual env and install pandas, h5py and tensorflow but I can’t import ROOT
the first line :slight_smile:
import ROOT
answer: No module found
ter python version in lxplus is 3.6 and root is compatible with python3.7 or more , please can help me?


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20
Platform:
Compiler: Not Provided


Hello,

You can get ROOT as a conda package, which should help to include it in your virtual environment.

Cheers,
Jakob

1 Like

first, thank you for answer!
But how make this?
I tried:
in my virtual env:
pip install conda conda create -c conda-forge root
but I had this problem:
I have 3 virtual env, in first I din’t pandas and tensorflow, in second I have pandas and tensorflow
in first the ROOT ok, because
$ python3.6

import ROOT
importa pandas
no module found
in second
$ python3.6
import pandas
import ROOT
no module found
do you understand my problem?
cheers

I’m not sure I understand. There is a longer blog post on conda which might help. @chrisburr Perhaps you have a tip?

1 Like

Thanks for everything, but my problem persists and I don’t know what to do! :frowning:

The blog post @jblomer suggested di not help ?

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