# "import ROOT" is not working in root 6.26

**URL:** <https://root-forum.cern.ch/t/import-root-is-not-working-in-root-6-26/53803>\
**Category:** ROOT\
**Created:** [February 27, 2023, 5:39pm UTC](https://root-forum.cern.ch/t/import-root-is-not-working-in-root-6-26/53803 "2023-02-27T17:39:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [February 28, 2023, 7:19am UTC](https://root-forum.cern.ch/t/import-root-is-not-working-in-root-6-26/53803/4 "2023-02-28T07:19:32Z")

</div>

Dear @ajit ,

First of all, I would try to install ROOT via your system package manager or, failing that, via [conda](https://root.cern/install/#conda) (you could even use mamba for faster installation, as I suggested in [other posts](https://root-forum.cern.ch/t/root-build-with-python-3-7-in-centos7/53162/8)).

If you are still sure you want to compile ROOT yourself afterwards, just build without `-Dpyroot_legacy=ON` and see if that is enough. Remember that you still need to `source thisroot.sh` after compilation if you want to `import ROOT` in your python scripts. And remember that it must be the same Python executable that you used to build ROOT with.

Cheers,  
Vincenzo

---

_[View the full topic](https://root-forum.cern.ch/t/import-root-is-not-working-in-root-6-26/53803)._
