# Python error massage "No module named "ROOT"" although ROOT is installed

**URL:** <https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [August 3, 2024, 9:28am UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410 "2024-08-03T09:28:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Slany](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/david_slany/32/37220_2.png) [@David\_Slany](https://root-forum.cern.ch/u/David_Slany)\
**Post date:** [August 3, 2024, 9:28am UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410/1 "2024-08-03T09:28:16Z")

</div>

Hello,  
Im a newbie to ROOT and PyROOT and recently installed ROOT via Ubuntu, which i wanted to use for my project. However Python is not able to find the module “ROOT” and I cant figure out why. I will be glad for any help.  
Thanks

 ![Untitled](https://root-forum.cern.ch/uploads/default/original/3X/8/3/83857a0e29e5653216414abad5830380cb6bafe7.jpeg)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [August 3, 2024, 9:37am UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410/2 "2024-08-03T09:37:25Z")

</div>

Welcome to the ROOT Forum!  
Make sure `${ROOTSYS}/lib` is is in your `${PYTHONPATH}`. This is usually automatically set when sourcing `root/bin/thisroot.sh`.

---

<div class="post-metadata">

**Author:** ![David\_Slany](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/david_slany/32/37220_2.png) [@David\_Slany](https://root-forum.cern.ch/u/David_Slany)\
**Post date:** [August 3, 2024, 9:49am UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410/3 "2024-08-03T09:49:54Z")

</div>

Thanks for reply,  
Im not sure how to check if ROOTSYS is in my PYTHONPATH. My sourcing is at the bottom of the screenshot

 ![2](https://root-forum.cern.ch/uploads/default/original/3X/c/b/cb4e1598f913d1a702333d45a88e27e0fcf8f548.jpeg)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [August 3, 2024, 9:51am UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410/4 "2024-08-03T09:51:45Z")

</div>

> [@David\_Slany](#):
>
> Im not sure how to check if ROOTSYS is in my PYTHONPATH

`echo ${ROOTSYS}`  
`echo ${PYTHONPATH}`

For example:

```bash
source build/master/bin/thisroot.sh
ubuntu@root-cmake-devel:~$ echo ${ROOTSYS}
/home/ubuntu/build/master
ubuntu@root-cmake-devel:~$ echo ${PYTHONPATH}
/home/ubuntu/build/master/lib
ubuntu@root-cmake-devel:~$

```

---

<div class="post-metadata">

**Author:** ![David\_Slany](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/david_slany/32/37220_2.png) [@David\_Slany](https://root-forum.cern.ch/u/David_Slany)\
**Post date:** [August 3, 2024, 5:17pm UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410/5 "2024-08-03T17:17:26Z")

</div>

Ok, I reinstalled Python and ROOT to Windows, ROOT and “import ROOT” in Python works just fine, however it works only via command line after using “\root\_v6.32.02.win64.vc17\root\bin\thisroot.bat”

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/3/2/32fb5bccdf84fb5a86aae5cd9b699f4b724cf540.png)

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [August 4, 2024, 8:46am UTC](https://root-forum.cern.ch/t/python-error-massage-no-module-named-root-although-root-is-installed/60410/6 "2024-08-04T08:46:33Z")

</div>

That’s what the instructions say.

> **[Installing ROOT](https://root.cern/install/)**
>
> Data Analysis Framework
