# Root Installation (WINDOWS 11)

**URL:** <https://root-forum.cern.ch/t/root-installation-windows-11/59421>\
**Category:** Newbie\
**Tags:** root\
**Created:** [May 21, 2024, 12:55pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421 "2024-05-21T12:55:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 21, 2024, 12:55pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/1 "2024-05-21T12:55:19Z")

</div>

I want to use PyRoot for my M.Sc. Project in High Energy Physics. I have installed cmake in my D drive and extracted the file contents into a folder named ROOT in the D drive. I have installed Visual Studio 2022. and I have Python 3 installed in my system. Can anyone guide me what to do next. I am currently using Windows 11.

---

<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:** [May 21, 2024, 12:59pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/2 "2024-05-21T12:59:45Z")

</div>

Welcome to the ROOT Forum!  
To use ROOT, you have to start from a `Developer Command Prompt for VS2022`, then call `D:\ROOT\bin\thisroot.bat` to properly set the environment variables, then you can start using ROOT by typing root or PyROOT by starting Python and `import ROOT` in the Python environment

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 21, 2024, 1:11pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/3 "2024-05-21T13:11:16Z")

</div>

how to start from a developer command prompt for VS2022 and how to call the D:\ROOT\bin\thisroot.bat from there. I am totally a newbie and have very less knowledge on how to use this. If you could guide me, I would remain grateful for your help.

---

<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:** [May 21, 2024, 1:20pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/4 "2024-05-21T13:20:48Z")

</div>

OK, so let’s start from the beginning. Can you describe exactly what you’ve done so far? I.e. What you downloaded and how/where you installed stuff?

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 21, 2024, 7:30pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/5 "2024-05-21T19:30:50Z")

</div>

So it was my F drive sorry. I saw on google what developer command prompt was and I used it and I can see something like this

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/d/c/dc08161e8f8b3899530b15519565933be968d15b.png)

---

<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:** [May 22, 2024, 6:48am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/6 "2024-05-22T06:48:29Z")

</div>

OK, fine. But can you give the information I asked for?

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 9:16am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/7 "2024-05-22T09:16:40Z")

</div>

so downloaded cmake files in my F drive and then I installed VS 2022 on my system… and opened a new project for VS in the same drive as that of cmake files. And I did install Python3(installed in C Drive) a year back.

---

<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:** [May 22, 2024, 9:18am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/8 "2024-05-22T09:18:10Z")

</div>

So you did not install ROOT? Then please follow [Installing ROOT - ROOT](https://root.cern/install/)

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 9:23am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/9 "2024-05-22T09:23:02Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/a/d/adf15ca6d240e7470a71e8b11286e1cc614a002d.png) So I went here…  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/3/1/31c02a9f8e2c9ea0cc030942c65645d9e5b3fbc7.png)  
Should I download the Source distribution or from binary(x64bit versions) distribution?

---

<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:** [May 22, 2024, 9:24am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/10 "2024-05-22T09:24:11Z")

</div>

Try to use a binary x64 distribution, it will be much simpler

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 9:27am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/11 "2024-05-22T09:27:11Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/5/e/5eaacb47dc3ad393cf8d1fcbb39fa39d8167bc09.png)  
which one to download?

---

<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:** [May 22, 2024, 9:28am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/12 "2024-05-22T09:28:54Z")

</div>

This one: [root\_v6.30.06.win64.vc17.zip](https://root.cern/download/root_v6.30.06.win64.vc17.zip)

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 10:10am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/13 "2024-05-22T10:10:00Z")

</div>

Its a Zip file right, so after downloading I should extract the files in the same drive as that of cmake (F: drive)

---

<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:** [May 22, 2024, 10:24am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/14 "2024-05-22T10:24:02Z")

</div>

Yes, it’s a zip file. Extract the file anywhere you want

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 10:49am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/15 "2024-05-22T10:49:44Z")

</div>

Okay, what to do after I have extracted the files?

---

<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:** [May 22, 2024, 10:53am UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/16 "2024-05-22T10:53:58Z")

</div>

Now you can use ROOT, and as I said, to use ROOT, you have to start from a `Developer Command Prompt for VS2022` , then call `F:\ROOT\root\bin\thisroot.bat` (or wherever you unzipped the zip file) to properly set the environment variables, then you can start using ROOT by typing `root` or use PyROOT by starting Python and `import ROOT` in the Python shell  
And I would advise to start from [Get Started - ROOT](https://root.cern/get_started/) and in particular [ROOT Primer - ROOT](https://root.cern/primer/)

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 3:16pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/17 "2024-05-22T15:16:06Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/8/a/8a2b1c1ba142d5f698b0b24735a52163059896cc.png)  
im seeing this

---

<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:** [May 22, 2024, 3:20pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/18 "2024-05-22T15:20:29Z")

</div>

```cmd
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.10.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************

F:\ROOT\PythonApplication1>F:\ROOT\root\bin\thisroot.bat

F:\ROOT\PythonApplication1>root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.30/06 https://root.cern |
  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Apr 03 2024, 06:35:12 |
  | From tags/v6.30.06-0-g4f4e716372@v6.30.06-0-g4f4e716372 |
  | With MSVC 19.39.33521.0 |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------------

root [0]

```

---

<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:** [May 22, 2024, 3:23pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/19 "2024-05-22T15:23:27Z")

</div>

Or, with python:

```cmd
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.10.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************

F:\ROOT\PythonApplication1>F:\ROOT\root\bin\thisroot.bat

F:\ROOT\PythonApplication1>python
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>>

```

---

<div class="post-metadata">

**Author:** ![UTSA\_DASTIDAR](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/utsa_dastidar/32/36564_2.png) [@UTSA\_DASTIDAR](https://root-forum.cern.ch/u/UTSA_DASTIDAR)\
**Post date:** [May 22, 2024, 5:03pm UTC](https://root-forum.cern.ch/t/root-installation-windows-11/59421/20 "2024-05-22T17:03:41Z")

</div>

when I am using this I am getting this output

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/4/84df08205ad0521cb17cb4dbc1a39ce8421aad49.png)

[Next page](https://root-forum.cern.ch/t/root-installation-windows-11/59421.md?page=2)
