# There is no pyroot

**URL:** <https://root-forum.cern.ch/t/there-is-no-pyroot/57486>\
**Category:** Newbie\
**Created:** [December 10, 2023, 6:16pm UTC](https://root-forum.cern.ch/t/there-is-no-pyroot/57486 "2023-12-10T18:16:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvpurohit](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mvpurohit](https://root-forum.cern.ch/u/mvpurohit)\
**Post date:** [December 10, 2023, 6:16pm UTC](https://root-forum.cern.ch/t/there-is-no-pyroot/57486/1 "2023-12-10T18:16:11Z")

</div>

> root --version  
> ROOT Version: 6.30/02  
> Built for linuxx8664gcc on Dec 10 2023, 05:31:40  
> From heads/master@tags/v6-30-02

_Platform:_ Ubuntu 20.04.6 LTS

> g++ --version  
> g++ (Ubuntu 13.1.0-8ubuntu1~20.04.2) 13.1.0  
> Copyright (C) 2023 Free Software Foundation, Inc.  
> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The problem is simple:

> pyroot  
> pyroot: Command not found.

Also, there is no executable called “pyroot” or “pyroot.exe” in the directory in which root was installed:

root-6.30.02\> find . -type f -iname “_pyroot_”  
./tutorials/pyroot/pyroot002\_pythonizationDecorator.py  
./tutorials/pyroot/pyroot001\_arrayInterface.py  
./tutorials/pyroot/pyroot005\_tfile\_context\_manager.py  
./tutorials/pyroot/pyroot004\_NumbaDeclare.py  
./tutorials/pyroot/pyroot006\_tcontext\_context\_manager.py  
./tutorials/pyroot/pyroot003\_prettyPrinting.py  
./include/ROOT/RDF/PyROOTHelpers.hxx  
./lib/libJupyROOT3\_8.so  
./bindings/pyroot/pythonizations/CMakeFiles/ROOTPythonizations3\_8.dir/src/PyROOTStrings.cxx.o  
./bindings/pyroot/pythonizations/CMakeFiles/ROOTPythonizations3\_8.dir/src/RPyROOTApplication.cxx.o  
./bindings/pyroot/pythonizations/CMakeFiles/ROOTPythonizations3\_8.dir/src/PyROOTModule.cxx.o  
./bindings/pyroot/pythonizations/CMakeFiles/ROOTPythonizations3\_8.dir/src/PyROOTWrapper.cxx.o

Any help would be appreciated!

---

<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:** [December 10, 2023, 9:09pm UTC](https://root-forum.cern.ch/t/there-is-no-pyroot/57486/2 "2023-12-10T21:09:32Z")

</div>

Dear @mvpurohit ,

There is no `pyroot` executable in general. To use ROOT within a Python session, just run

```auto
$: python
>>> import ROOT

```

or directly `import ROOT` in any Python script.

Just to be sure, did you find the `pyroot` executable being mentioned anywhere, e.g. in tutorials or examples? In case, those would need to be rectified so let us know.

Cheers,  
Vincenzo

---

<div class="post-metadata">

**Author:** ![mvpurohit](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/bcef8e/32.png) [@mvpurohit](https://root-forum.cern.ch/u/mvpurohit)\
**Post date:** [December 10, 2023, 10:25pm UTC](https://root-forum.cern.ch/t/there-is-no-pyroot/57486/3 "2023-12-10T22:25:37Z")

</div>

Thank you. I am currently rebuilding ROOT thinking that the earlier build was in error. Will try “import ROOT” when it’s done.

[In an earlier version of my system “pyroot” used to work, but I don’t recall the earlier build from years ago so I can’t explain why it worked.]
