# How to set PYTHONPATH when I obtain "Import ROOT error . No module found"

**URL:** <https://root-forum.cern.ch/t/how-to-set-pythonpath-when-i-obtain-import-root-error-no-module-found/39763>\
**Category:** Newbie\
**Created:** [June 4, 2020, 6:56pm UTC](https://root-forum.cern.ch/t/how-to-set-pythonpath-when-i-obtain-import-root-error-no-module-found/39763 "2020-06-04T18:56:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [June 4, 2020, 7:02pm UTC](https://root-forum.cern.ch/t/how-to-set-pythonpath-when-i-obtain-import-root-error-no-module-found/39763/2 "2020-06-04T19:02:32Z")

</div>

See if you have “pyroot” among: `root-config --features`

In principle you should not set ROOT related environment variables manually. You should simply:  
`source /full/path/to/your/root/bin/thisroot.sh`

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-set-pythonpath-when-i-obtain-import-root-error-no-module-found/39763)._
