# How to use PyROOT on Windows

**URL:** <https://root-forum.cern.ch/t/how-to-use-pyroot-on-windows/11820>\
**Category:** ROOT\
**Created:** [February 6, 2011, 1:56am UTC](https://root-forum.cern.ch/t/how-to-use-pyroot-on-windows/11820 "2011-02-06T01:56:46Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![aruntripathi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/eada6e/32.png) [@aruntripathi](https://root-forum.cern.ch/u/aruntripathi)\
**Post date:** [February 6, 2011, 1:56am UTC](https://root-forum.cern.ch/t/how-to-use-pyroot-on-windows/11820/1 "2011-02-06T01:56:46Z")

</div>

Hello,  
I am trying to use ROOT in python on Windows 7. I installed python 2.7.1, and ROOT 5.28.00 (prebuilt Windows binaries for both). Per instructions on the ROOT website ([root.cern.ch/drupal/content/how- … nterpreter](http://root.cern.ch/drupal/content/how-use-use-python-pyroot-interpreter)), I set the following environment variables as suggested:

set PATH=%ROOTSYS%/bin;%PATH%  
set PYTHONPATH=%ROOTSYS%/bin;%PYTHONPATH%

However, when I try to import ROOT from within python, I get an error saying no ROOT module is found. I can’t run any of the python demos either.

What am I doing wrong? Do I need to compile ROOT from scratch to be able to use ROOT classes from within python? Is python support not available in the prebuilt windows binaries? Most likely I am missing something obvious here.

Many thanks for your help.

-Arun

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-use-pyroot-on-windows/11820)._
