# No module named 'ROOT' error

**URL:** <https://root-forum.cern.ch/t/no-module-named-root-error/56469>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [September 25, 2023, 9:15am UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469 "2023-09-25T09:15:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maaike1806](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/maaike1806/32/34574_2.png) [@maaike1806](https://root-forum.cern.ch/u/maaike1806)\
**Post date:** [September 25, 2023, 9:15am UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469/1 "2023-09-25T09:15:42Z")

</div>

When I try to run import ROOT I get the following error message:

ModuleNotFoundError: No module named ‘ROOT’

I did source thisroot.sh  
Does anyone know what might help?

---

<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:** [September 25, 2023, 1:05pm UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469/2 "2023-09-25T13:05:14Z")

</div>

Hello,

Hard to say given the context given in this message. What ROOT version is this? On what platform? How did you obtain it (build yourself, downloaded binaries…)?

Sorry for the questions, but it’s really hard to help without some more information!

Cheers,  
D

---

<div class="post-metadata">

**Author:** ![maaike1806](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/maaike1806/32/34574_2.png) [@maaike1806](https://root-forum.cern.ch/u/maaike1806)\
**Post date:** [September 25, 2023, 3:01pm UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469/3 "2023-09-25T15:01:17Z")

</div>

I run root 6.28.06 on ubuntu, I installed python 3.10 I was able to import other libraries like numpy, but not ROOT. I installed root as described by the instructions on the cern root website

---

<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:** [September 25, 2023, 3:48pm UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469/4 "2023-09-25T15:48:58Z")

</div>

Hi,

On what platform exactly and from sources and you built ROOT yourself? Perhaps you installed the binaries?

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![maaike1806](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/maaike1806/32/34574_2.png) [@maaike1806](https://root-forum.cern.ch/u/maaike1806)\
**Post date:** [September 26, 2023, 8:09am UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469/5 "2023-09-26T08:09:00Z")

</div>

[Installing ROOT - ROOT](https://root.cern/install/), I used a wsl to run it on my windows laptop

I reinstalled root and now it works, not sure why.

Thanks for your help!

---

<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:** [September 26, 2023, 8:14am UTC](https://root-forum.cern.ch/t/no-module-named-root-error/56469/6 "2023-09-26T08:14:17Z")

</div>

Great, thanks for updating us. Have a productive day.

D
