# Importing Root

**URL:** <https://root-forum.cern.ch/t/importing-root/58501>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [March 12, 2024, 2:45pm UTC](https://root-forum.cern.ch/t/importing-root/58501 "2024-03-12T14:45:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gorgon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gorgon/32/35198_2.png) [@Gorgon](https://root-forum.cern.ch/u/Gorgon)\
**Post date:** [March 12, 2024, 2:45pm UTC](https://root-forum.cern.ch/t/importing-root/58501/1 "2024-03-12T14:45:18Z")

</div>

For some reasons unknown to me, importing ROOT to the test.py file doesnt work.  
When I try to run python test.py I get the error “No module named ROOT”.  
I use Windows10 and X-Win32 to connect to the lxplus7 server.  
How can I identify the problem?

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [March 12, 2024, 3:34pm UTC](https://root-forum.cern.ch/t/importing-root/58501/2 "2024-03-12T15:34:35Z")

</div>

Hi,

Sorry to hear you are encountering this issue.  
This looks like a problem with your setup. Importing the ROOT module on lxplus(7) works flawlessly.

Best,  
Danilo

---

<div class="post-metadata">

**Author:** ![Gorgon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gorgon/32/35198_2.png) [@Gorgon](https://root-forum.cern.ch/u/Gorgon)\
**Post date:** [March 13, 2024, 6:14am UTC](https://root-forum.cern.ch/t/importing-root/58501/3 "2024-03-13T06:14:12Z")

</div>

Is there something I can do to solve the problem maybe downloading or updating something or should I contact someone from the help center to help me do it?

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [March 13, 2024, 10:55am UTC](https://root-forum.cern.ch/t/importing-root/58501/4 "2024-03-13T10:55:22Z")

</div>

Hi,

If you are trying to import the ROOT module in a python program or interpreter on lxplus7 or lxplus, I think nothing has to be done because, by default, ROOT is installed on lxplus machines and PyROOT works.

Best,  
D

---

<div class="post-metadata">

**Author:** ![Gorgon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gorgon/32/35198_2.png) [@Gorgon](https://root-forum.cern.ch/u/Gorgon)\
**Post date:** [March 13, 2024, 12:21pm UTC](https://root-forum.cern.ch/t/importing-root/58501/5 "2024-03-13T12:21:18Z")

</div>

I realised the I didnt open the conda enviromnet needed for root to be imported. Sorry for the mistake.
